10 replies to this topic
Ad:
#3 Members - Reputation: 3789
Posted 16 September 2012 - 03:05 AM
Your first post was at 2:30am (my time), your second at 9:22am. During that time most people in my time zone, or one not too far off it, would be asleep. Aside from that, 7 hours is an awfully short time before a second post like this.
And aside from all of that - what have you tried?
And aside from all of that - what have you tried?
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
#4 Members - Reputation: 115
Posted 16 September 2012 - 09:14 AM
I have a model exported from 3ds Max. Suppose a simple mesh like plane with a simple texture, painted half of it's vertices with vertex paint modifier. The X file template "MeshVertexColor" contains color for each vertx .How to display them on screen with d3d?
Edited by Anoop Chauhan, 16 September 2012 - 09:17 AM.
#5 Members - Reputation: 636
Posted 17 September 2012 - 02:02 AM
Are you using the fixed function pipeline (FFP) or vertex/pixel shaders?
Btw, are you sure that your x-file exporter DOES export also vertex colors set by the vertex paint modifier? (Just to be sure because the exporter I was using didn't do this.)
Btw, are you sure that your x-file exporter DOES export also vertex colors set by the vertex paint modifier? (Just to be sure because the exporter I was using didn't do this.)
#8 Moderators - Reputation: 13458
Posted 19 September 2012 - 02:22 AM
You need to configure the texture blending environment for your fixed-function material.
e.g. setting a blending stage, which modulates the texture colour with the diffuse colour.
e.g. setting a blending stage, which modulates the texture colour with the diffuse colour.
#11 Members - Reputation: 115
Posted 21 September 2012 - 09:09 PM
D3DXLoadMeshHierarchyFromX loads the animation data and frame hierarchy from a x file.I dont think it mean anything to vertex color.After all I did it, simply By using D3DXLoadMeshFromX. But it doesn't look like that of 3dsmax model. Perhaps every vertex color I specified , has been combined with it's diffuse color and finally put into material buffer, Can anyone guess why vertex colors seems to be zigzag. thanks guys anyway







