TheSwamp

Code Red => .NET => Topic started by: Ricky_76 on May 12, 2010, 03:14:54 PM

Title: 3D Environment
Post by: Ricky_76 on May 12, 2010, 03:14:54 PM
Hi,
I need to draw 3D entities in a Form application in VB.net.
I already have the entities stored in a DataBase, the syntax used is probably a standard in 3d graphic.

The output I need can be seen in linked files "Des_01.jpg", "Des_02.jpg"
No matter the quality of the render, I just need to view entities in a 3D space.
I'll need to rotate the camera ed select each entity separately.

Examples of syntax :

Code: [Select]
CUBO 32; 2+5; -P; L-64; 323; 10; 'Cube x, y, z, L, H, P
CIL 27; 2+322; -P+10; P-10; 6; 6; 0; 0; 0; 1; 'Cilinder x, y, z, H, R1, R2, ..., ..., ...
ARC2D 688.8; 502.6; 117.9; 10; 0; 360; 'Arc x, y, Radius, sides, startAngle, totalAngle
POLI  84.6; 135.4; 282.6; 520.8; 558.6; 257.8; 253.9; 59.9; 'Poly x1, y1, x2, y2, ..., ...

http://i745.photobucket.com/albums/xx98/RickyReds/Des_01.jpg (http://i745.photobucket.com/albums/xx98/RickyReds/Des_01.jpg)
http://i745.photobucket.com/albums/xx98/RickyReds/Des_02.jpg (http://i745.photobucket.com/albums/xx98/RickyReds/Des_02.jpg)

Can someone give me the right direction to move in.

Tnx a lot for the collaboration!
/r
Title: Re: 3D Environment
Post by: Jerry J on May 12, 2010, 07:57:16 PM
Maybe you might want to try Opengl. If you search it at this site, I recall some good links to tutorials. It's really pretty simple. I only looked at the C# examples but it's almost like scripting.  Good luck.