walkinside / sdk

Develop powerful desktop and web applications on top of Walkinside 3D engine
4 stars 4 forks source link

Walkinside SDK Beta Core Preview #35

Closed griemens closed 7 years ago

griemens commented 7 years ago

Hi,

In the examples collection I can only find 2d examples and a light example. Will it be possible to draw 3D content using this SDK ?

I would like to render my own waypath for ITS.

A scenario has more then 60 actions and I need to render only the current section of the waypath. Rendering a full way path as walkinside does is not usefull.

Thanks,

kveretennicov commented 7 years ago

CC @agadoul @gcorvala @andgonro

Agadoul commented 7 years ago

Hi, Our CoreSdk (Preview) has this feature indeed. It is not yet clean and therefore not all features are easy to use and the Api might change in the next version. So I can try to drive you to create a vbo.

And voila. I hope this is explained well enough.

I keep in mind to have a Sdk example showing this feature in the close future. Thanks for your interest and your support, Axel.

griemens commented 7 years ago

Excellent! going to give it a try, and when I have a sample running will upload the code to github.

The vertex format I need is Position (x,y,z) and UV (x,y)

Agadoul commented 7 years ago

magic number should be 18.

You can combine them. here is the supported type.

enum { VR_VF_XY_F = (1 << 0), // XY position: 2 floats VR_VF_XYZ_F = (1 << 1), // XYZ position: 3 floats VR_VF_NORMAL_F = (1 << 2), // normal: 3 floats VR_VF_RGBA_B = (1 << 3), // color: 4 bytes VR_VF_TEX0_UV_F = (1 << 4), // tex coords 0, 2 floats };

kveretennicov commented 7 years ago

I assume this has been resolved. Feel free to re-open in case of questions.