Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (lijoyi2011), 1,042 guests, and 2 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
Page 3 of 3 1 2 3
Re: ent_setvertex() [Re: annonymie] #398819
04/06/12 23:23
04/06/12 23:23
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I'm not sure, but you may have to set c.v = NULL; before ent_setvertex or alter the normal vector of c.v manually.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: ent_setvertex() [Re: Superku] #398824
04/07/12 08:12
04/07/12 08:12
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
it works:

// after c_trace
c.v.nx = (float)hit.nx;
c.v.nz = (float)hit.ny;
c.v.ny = (float)hit.nz;

because to write you need c.v:

d3d vertex struct c.v.*:
typedef struct {
float x,y,z; // position
float nx,ny,nz; // normal
float u1,v1; // coordinate set 1, for base texture
float u2,v2; // coordinate set 2, for light map or detail map
float x3,y3,z3,w3; // coordinate set 3, for tangent or other purposes (A7.06 and above only)
} D3DVERTEX;



Free world editor for 3D Gamestudio: MapBuilder Editor
Page 3 of 3 1 2 3

Moderated by  aztec, Inestical, Matt_Coles, Tobias 

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