Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WMPIO SDK #439380
04/01/14 18:22
04/01/14 18:22
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Hi,

I have a few questions concerning the WMP lib.

Looking at the face of a block. It seems to be accompanied by a plane.
e.g.
plane: n (0.000000, 0.000000, 1.000000), pt (0.000000, 0.000000, 2.000000) d=2.000000

What exactly are those values? n seems to be the normal, and d some distance (whatis it used for?), but what is pt?
Is this information mandatory or can WED recreate it from the face data?

Same goes for textures...
texture_vecs: (1.000000,0.000000,0.000000,0.000000) (0.000000,-1.000000,0.000000,0.000000)
texture_abs_vecs: (1.000000,0.000000,0.000000,0.000000) (0.000000,-1.000000,0.000000,0.000000)
What are those numbers and are they mandatory?


Basically I have a D3DXmesh with skin id and UV coordinates (everything needed to ent_setmesh/skin a nice model instance) and want to drop that info to a WMP as concave block.
Besides some ambient and albedo values I don't need anything fancy - it can be applied in WED later.

But I'm unsure which attributes are mandatory (is there a list?).
A description of these values would help me a lot.

Thanks.


Re: WMPIO SDK [Re: FBL] #439471
04/03/14 12:51
04/03/14 12:51
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
I believe neither planes nor texture vecs are used anymore in the WMB Format. But anyway, a plane is defined by either a point and a normal, or a distance and a normal. The distance is to the origin. You can convert the point to the distance and vice versa. The texture vectors define a plane in the texture space - a cut through a hypothetical 3D cube that consists of the texture pixels. What the texture_abs_vecs do is unknown to me.


Re: WMPIO SDK [Re: jcl] #440302
04/23/14 09:17
04/23/14 09:17
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i can't remember the details anymore but when i tried to convert uvs to texture vectors many years ago (when i experimented with my blender exporter) i used a gauß-seidel solver.

it's not always possible to convert uvs to those texture vectors though. on a mesh with uvs the texture mapping is much more versatile since every vertex can have its own uv coordinate. which can lead to problems with wmp faces with more than 3 sides for example.

Re: WMPIO SDK [Re: ventilator] #440337
04/23/14 22:31
04/23/14 22:31
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
don't kill the fun grin
I hoped there is a simple way to get a mesh stored into WMP, but I will see... some time in the future...maybe...

Re: WMPIO SDK [Re: FBL] #442805
07/03/14 15:58
07/03/14 15:58
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Is the SDK fully compatible to Lite-C, meaning can the source files and headers be used in Lite-C without building a wrapper DLL?

Re: WMPIO SDK [Re: FBL] #442828
07/04/14 05:59
07/04/14 05:59
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
No, the SDK is for C++. I have not tried it with lite-C, but I doubt that it compiles. You need a wrapper.

Re: WMPIO SDK [Re: jcl] #442847
07/04/14 16:55
07/04/14 16:55
Joined: Sep 2003
Posts: 9,859
F
FBL Offline OP
Senior Expert
FBL  Offline OP
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
meh.


Moderated by  old_bill, 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