Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Changing a (face/triangle)

Author
Message
Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 13th May 2011 22:25 Edited at: 13th May 2011 22:27
How would I go about changing the color of a single face of an object?

Any tips on getting started will help.

do I need to code in directX, how do I specify a face, what are some usfull functions/tips for coding this?

Attachments

Login to view attachments
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 15th May 2011 02:16
I've just had a look back through the forums to dig something out but can't find it anywhere. There was something someone answered that you can make memblock and create manually an object from scratch. Apart from that I'm not sure.

Warning! May contain Nuts!
Brendy boy
19
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 16th May 2011 02:36
Quote: "how do I specify a face"

using 3 indices if object contains index data or with 3 vertices if object only contains vertexdata

Quote: "How would I go about changing the color of a single face of an object?"

set vertexdata diffuse command -> but you first need to convert object's fvf format to one of the formats that contain diffuse color

Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 19th May 2011 05:01 Edited at: 31st May 2011 02:53
Do I need anything special to access the vertex data cammands?
and
how to I go about converting the fvf?
[still wondering]

Login to post a reply

Server time is: 2024-11-19 10:36:05
Your offset time is: 2024-11-19 10:36:05