Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, 7th_zorro, VoroneTZ, Quad), 901 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Vertex Informations #422163
05/03/13 10:04
05/03/13 10:04
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline OP
Member
jenGs  Offline OP
Member
J

Joined: Jul 2010
Posts: 283
Germany
Hi,

I am learning the basics of vertexshader right now.
I successfully implemented lighting to a triplanar terrain,
texture shader.
Now I want to do some additional things. Is there a way to pass some more information with a vertex, for example an individual vertex color?
Or perhaps just an individual ambient value?
Because of the lacking texture coordiantes on my model, I can't use an additional map to look such informations up.

Perhaps this question sounds a bit silly for you shader gurus,
but I am still at the beginning laugh

Greetings,
Patrick

Re: Vertex Informations [Re: jenGs] #422167
05/03/13 10:33
05/03/13 10:33
Joined: Apr 2013
Posts: 17
Q
qwe Offline
Newbie
qwe  Offline
Newbie
Q

Joined: Apr 2013
Posts: 17
I think you can, if you use ent_getmesh ,you will get pointer to LPD3DXMESH.then you can use UpdateSemantics method and use LockVertexBuffer to set data.
or
create new mesh then use ent_setmesh.

for more info about LPD3DXMESH

ID3DXBaseMesh

Re: Vertex Informations [Re: qwe] #422168
05/03/13 10:51
05/03/13 10:51
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
just modify your texture coordinates via ent_getvertex and ent_setvertex
you can use the texture coordinates for giving additional informations (you don't need to use them as a texture coordinate)


Visit my site: www.masterq32.de
Re: Vertex Informations [Re: MasterQ32] #422169
05/03/13 11:09
05/03/13 11:09
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline OP
Member
jenGs  Offline OP
Member
J

Joined: Jul 2010
Posts: 283
Germany
Thank you guys for the fast answers.
Didn't thought of that.
Thought that you can't use the coordinates if no maps are assigned. Learned something new laugh

Greetings,
Patrick


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1