MAMEWorld >> Programming
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

ambhai
MAME Fan
Reged: 09/17/07
Posts: 5
Send PM
Color not correct? VcMame 0.105 Embedded in 3D app
09/28/07 01:39 AM


Due to lack of experience with gnu tools and lack of VS2005 project for latest mame. I decided to use old vcmame 0.105.

However I am not getting collect colors.
Here's a screen of midres.zip (Midnight Resistance)



NOTE: im using old Mame 0.105 version

To retrieve the game texture I inserted a callback inside
>> mame0105\src\windows\window.c
>> void win_update_video_window(mame_bitmap *bitmap, const rectangle *bounds, void *vector_dirty_pixels)

A memcpy is performed for copying texture data

-I tried both d3d and ddraw in mame
-I tried both formats in Ogre3d
PF_R5G6B5 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue.
PF_B5G6R5 16-bit pixel format, 5 bits red, 6 bits green, 5 bits blue
-A also see some big random blocks in rendered image not in original game.

But no difference. What possibly is wrong?







Entire thread
Subject Posted by Posted on
* Color not correct? VcMame 0.105 Embedded in 3D app ambhai 09/28/07 01:39 AM
. * Re: Color not correct? VcMame 0.105 Embedded in 3D app R. Belmont  09/30/07 02:33 AM

Extra information Permissions
Moderator:  Pi 
0 registered and 46 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3318