Search found 7 matches

by crazy1k
Fri May 27, 2016 4:24 pm
Forum: Beginners Help
Topic: Two irrlicht viewports?
Replies: 0
Views: 651

Two irrlicht viewports?

Task is simple: My viewport size is 640x480. I need to get an exact 2D screen coordinates of certain point in 3D, but projected onto 1280x960 viewport. Additional info: - Simply multiplying coordinates by 2 is not an answer - I need precise coordinates. - Making viewport any larger is not acceptable...
by crazy1k
Mon Dec 28, 2015 11:44 am
Forum: Beginners Help
Topic: .obj import triangulation problem
Replies: 12
Views: 1917

Re: .obj import triangulation problem

Ok, so now it's a question of right triangulation of irregular poly, dividing one poly into number of triangles. I believe that this is not a problem :)
Thank you folks, I'll try my best.
by crazy1k
Mon Dec 28, 2015 10:20 am
Forum: Beginners Help
Topic: .obj import triangulation problem
Replies: 12
Views: 1917

Re: .obj import triangulation problem

Trouble is, that this .obj is generated by my program. Irrlicht fails to import even simplier models, like 4-vertex poly shaped like an end of arrow. Is there a way to solve this using standart procedures of Irrlicht? Or shall I triangulate model (never done this stuff in programming) before writing...
by crazy1k
Sat Dec 26, 2015 9:29 am
Forum: Beginners Help
Topic: .obj import triangulation problem
Replies: 12
Views: 1917

Re: .obj import triangulation problem

I've uploaded image to imgur and edited first message. 1_test.obj looks like this:   v 1.24151432514 -9.8482503891 -1.21268820763 v 1.21961474419 -9.67453289032 2.21719646454 v -2.84848546982 -9.32577991486 2.21719646454 v -2.89963340759 -9.4932346344 -1.21268820763 v -1.41504085064 -9.82481765747 -...
by crazy1k
Thu Dec 24, 2015 1:36 pm
Forum: Beginners Help
Topic: .obj import triangulation problem
Replies: 12
Views: 1917

.obj import triangulation problem

Importing it with standart procedure: scene::ISceneNode * Import_1 = smgr->addMeshSceneNode(smgr->getMesh("d:\\1_test.obj")); Compare the results in viewport with original model: http://i.imgur.com/RzUz7yV.jpg I've highlighted edges with thick red lines. Wrong triangulation, definitely. An...
by crazy1k
Sat Dec 19, 2015 2:00 pm
Forum: Beginners Help
Topic: [SOLVED] Import modified .obj, while program still runs.
Replies: 2
Views: 493

Re: Import modified .obj, while program still runs.

WORKS! Thanks a lot! I use only one mesh node, so I think there won`t be any issues with this anymore. Thanks again!
by crazy1k
Sat Dec 19, 2015 1:26 pm
Forum: Beginners Help
Topic: [SOLVED] Import modified .obj, while program still runs.
Replies: 2
Views: 493

[SOLVED] Import modified .obj, while program still runs.

Importing .obj like so: scene::ISceneNode * Import_1 = smgr->addMeshSceneNode(smgr->getMesh("d:\\1_test.obj")); Another nodes in scene - camera and one light. Then i wrote another button that removes this mesh: Import_1->remove(); Works well so far. Viewport showing that scene is empty (I ...