Re: example code
"Bram Stolk" <[email protected]> Sun, 18 Nov 2007 08:07:36 -0800
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
--===============2024745583==
Content-Type: multipart/alternative;
boundary="----=_Part_15578_20044816.1195402056526"
------=_Part_15578_20044816.1195402056526
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
There is nothing mysterious about and, and it is a straightforward task.
The gotcha's you need to look out for are:
- pass in the nr of indices, and not the nr of triangles in the build func.
- get the stride right, gimpact is more picky about strides than opcode
- the order of parms in the build func is stupid:
vertices,stride,number
verus:
indices,number,stride
dGeomTriMeshDataBuildSingle
(
Data,
world_vertices,
3 * sizeof(float),
numv,
world_indices,
numi,
3 * sizeof(dTriIndex)
);
Bram
On Nov 18, 2007 4:21 AM, mpeniak <[email protected]> wrote:
>
> Hi Guys
>
> Does anyone know about any example code where you can load some terrain
> from
> any file, for example from bitmap please? Is not it possible just to
> insert
> trimesh data into my code like it was done for the rabbit example. Both
> rabbit and terrain are in the end tri-meshes or am I wrong :confused:
>
> Please help me:,(
> Regards
> Martin
> --
> View this message in context:
> http://www.nabble.com/example-code-tf4830026.html#a13818609
> Sent from the ODE mailing list archive at Nabble.com.
>
> _______________________________________________
> ODE mailing list
> [email protected]
> http://ode.org/mailman/listinfo/ode
>
--
Zapp: Captain's log, stardate...er..
Kif: Ohhh. April 13th.
Zapp: April 13th. Point 2.
------=_Part_15578_20044816.1195402056526
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
There is nothing mysterious about and, and it is a straightforward task.<br>The gotcha's you need to look out for are:<br><br>- pass in the nr of indices, and not the nr of triangles in the build func.<br>- get the stride right, gimpact is more picky about strides than opcode
<br>- the order of parms in the build func is stupid:<br>vertices,stride,number<br>verus:<br>indices,number,stride<br><br> dGeomTriMeshDataBuildSingle<br> (<br> Data, <br> world_vertices, <br> 3 * sizeof(float),
<br> numv, <br> world_indices, <br> numi, <br> 3 * sizeof(dTriIndex)<br> );<br><br><br> Bram<br><br><br><div class="gmail_quote">On Nov 18, 2007 4:21 AM, mpeniak <<a href="mailto:[email protected]">[email protected]
</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Guys<br><br>Does anyone know about any example code where you can load some terrain from
<br>any file, for example from bitmap please? Is not it possible just to insert<br>trimesh data into my code like it was done for the rabbit example. Both<br>rabbit and terrain are in the end tri-meshes or am I wrong :confused:
<br><br>Please help me:,(<br>Regards<br>Martin<br><font color="#888888">--<br>View this message in context: <a href="http://www.nabble.com/example-code-tf4830026.html#a13818609" target="_blank">http://www.nabble.com/example-code-tf4830026.html#a13818609
</a><br>Sent from the ODE mailing list archive at <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<br><br>_______________________________________________<br>ODE mailing list<br><a href="mailto:[email protected]">[email protected]
</a><br><a href="http://ode.org/mailman/listinfo/ode" target="_blank">http://ode.org/mailman/listinfo/ode</a><br></font></blockquote></div><br><br clear="all"><br>-- <br>Zapp: Captain's log, stardate...er..<br>Kif: Ohhh. April 13th.
<br>Zapp: April 13th. Point 2.
------=_Part_15578_20044816.1195402056526--
--===============2024745583==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ODE mailing list
[email protected]
http://ode.org/mailman/listinfo/ode
--===============2024745583==--