Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, Ayumi, VHX, monarch), 1,161 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Multi texture blending, Vertex manipulation,UV map offset change #399315
04/14/12 08:55
04/14/12 08:55
Joined: Mar 2012
Posts: 43
J
Juggernaut Offline OP
Newbie
Juggernaut  Offline OP
Newbie
J

Joined: Mar 2012
Posts: 43
Hello,

Is it possible to do multiple texture blending in 3D Game Studio A8 ? How many maximum number of textures can be used ?

Secondly, is it possible to do vertex manipulation of 3D meshes at run time in 3D Game Studio A8 ?

Thirdly, is it possible to alter UV map off-set or co-ordinates of a 3D mesh at run-time ?

Please guide me where to look in order to implement them.

Thnaks,

Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: Juggernaut] #399351
04/14/12 14:05
04/14/12 14:05
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi

if texture blending needed for terrain: terraintex.fx (fixed function effect - alpha blending, no limit) or terraintex3.fx (shader, limited)

mesh vertex manipulation: http://www.conitec.net/beta/ent_getvertex.htm by accessing D3DVERTEX


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: sivan] #399430
04/15/12 11:15
04/15/12 11:15
Joined: Mar 2012
Posts: 43
J
Juggernaut Offline OP
Newbie
Juggernaut  Offline OP
Newbie
J

Joined: Mar 2012
Posts: 43
Hello Sivan,

Thank you for pointing me to the right shader files for texture blending in case of terrains. What about other models - do I have to use shader files in their case too ?

"mesh vertex manipulation: http://www.conitec.net/beta/ent_getvertex.htm by accessing D3DVERTEX" - this thing is not currently in the A8 version, it has been incorporated in the upcoming beta. So I guess I will have to directly use DirectX 9 functions to do the vertex manipulation as you have suggested.

Does anybody know about the third problem - changing the UV map off-set or co-ordinates of a 3D mesh at runtime ?

Thanks,

Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: Juggernaut] #399440
04/15/12 12:50
04/15/12 12:50
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
the manual link is beta, the function is implemented since a6 (afaik)


Visit my site: www.masterq32.de
Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: Juggernaut] #399441
04/15/12 12:52
04/15/12 12:52
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
ent_getvertex is not beta, I use it for terrain deformation. I have no experience with it for models, but must work.
someone definitely tried to apply terrain shaders for models, but don't know results... just try to search this forum.
I'm also interested in the uv manipulation laugh (it must be possible)


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: sivan] #399523
04/16/12 18:54
04/16/12 18:54
Joined: Mar 2012
Posts: 43
J
Juggernaut Offline OP
Newbie
Juggernaut  Offline OP
Newbie
J

Joined: Mar 2012
Posts: 43
ok sivan ...... thank you

@MasterQ32: Thank you too for confirming about the function inclusion in the engine. laugh

Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: Juggernaut] #399557
04/17/12 09:23
04/17/12 09:23
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
hi

I just read another post, and found out that by ent_getvertex it is possible to access the D3DVERTEX pointer of any model/terrain vertex called c.v if:

CONTACT* c = ent_getvertex(entity,NULL,vertex_number);

and as described in atypes.h:

typedef struct {
float x,y,z; // position in DirectX coordinates
float nx,ny,nz; // normal
float u1,v1; // first coordinate set, for textures
float u2,v2; // second coordinate set, for shadow maps
float x3,y3,z3,w3; // third coordinate set, for tangent vector and handedness
#ifdef A8
float tu4,tv4; // 4th coordinate set, for additional data
#endif
} D3DVERTEX;

very similar to mesh deformation, but now c.v.u1 and v1 are what you need (floats!). And then ent_setvertex(entity,c,vertex_number);


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: Multi texture blending, Vertex manipulation,UV map offset change [Re: sivan] #399818
04/20/12 15:17
04/20/12 15:17
Joined: Mar 2012
Posts: 43
J
Juggernaut Offline OP
Newbie
Juggernaut  Offline OP
Newbie
J

Joined: Mar 2012
Posts: 43
Thank you Sivan, I will look into it.


Moderated by  HeelX, Spirit 

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