Click here to Skip to main content
14,145,240 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
evening,
I'm not good in english, so I try to explain my question as simple as I can.
I got a .x format mesh which was exported from 3ds max, and used uvw onwarp mapping.
Could I get the w value from vertex buffer when I load this x file into memory?
or any other way to get it?

Thanks.

regards,
albert.
Posted
Comments
AlexlyBlue De Lu 9-Aug-10 5:37am
   
As what GPUToaster said, I had tried to duplicate vertex buffer, and I could get the UV Information. But uv information is not enough for me to put them into render engine. My render engine sdk shows I need put uvw information if using uvw mapping.
So that's why I wondered how to get the w value...
By the way, thanks for your help.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

AFAIK the vertex buffer cannot be read back. If you are trying to modify the UV sets then try duplicating Buffers. Because you will not get any performance difference.

Try using search engines. :)
   
v2
Comments
AlexlyBlue De Lu 9-Aug-10 5:31am
   
Reason for my vote of 5
Thanks for your kindly receiving.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

GPUToaster is correct, this has been discussed @ the Creators Club[^].

.X formats are not designed for "editing" type procedures, if you want to do this you will need to be working in DirectX, or OpenGl, NOT XNA. Xna is designed for displaying, not making.
   
Comments
AlexlyBlue De Lu 9-Aug-10 5:31am
   
Reason for my vote of 5
Thanks for your kindly receiving.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190518.1 | Last Updated 6 Aug 2010
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100