Search found 27 matches

by Wodzu
Sun Nov 02, 2014 3:38 pm
Forum: Beginners Help
Topic: How to properly operate a camera?
Replies: 3
Views: 679

How to properly operate a camera?

Camera, action! ;) Guys, I have a camera that is looking at the center (0,0,0). I have triangle in that position. Now, when I try to rotate camera along z-axis by 45 degrees I would expected that my triangle will be still visible in a viewport but it will be rotated. However, after performing a rota...
by Wodzu
Sat Nov 01, 2014 2:59 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain [SOLVED]

Thanks, I've had no idea that software renderer is doing such thing. So much to learn:)
by Wodzu
Tue Oct 28, 2014 10:13 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

Now I see the difference, it is the problem of camera. In your example it was y =200, in mine y = 100. Now I see the triangle, mesh loader works fine.

Could you tell me one more thing, why the triangle is completly cut off from the viewport when I set up camera y=137 and it is visible at y=138?
by Wodzu
Tue Oct 28, 2014 10:00 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

Wow, you are fast:) Thank you for helping me out. I've tried your example and it works, I am not able to figure out the difference between your example and full mesh loader which does not work. I did not posted the full source because I did not want to clutter the forum but if you be so kind, please...
by Wodzu
Tue Oct 28, 2014 9:03 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

Ok, so I've finally wrote my mesh loader, the problem is that I do not see anything after loading a mesh. I do not know how to properly debug the reason which I am not seeing my test mesh. Could you help me a little? Here is the createMesh method:   IAnimatedMesh* YWFMeshFileLoader::createMesh(io::I...
by Wodzu
Thu Oct 16, 2014 10:03 am
Forum: Beginners Help
Topic: Is it the best way to calculate normal?
Replies: 2
Views: 235

Re: Is it the best way to calculate normal?

Thanks for a quicky reply!

I just like to know all my possibilities:)

Thanks again.
by Wodzu
Wed Oct 15, 2014 11:21 pm
Forum: Beginners Help
Topic: Is it the best way to calculate normal?
Replies: 2
Views: 235

Is it the best way to calculate normal?

Hi, I just want to make sure that there is no other way in Irrlicht for calculating normal other than this?   core::plane3df(vertex[2],vertex[1],vertex[0]).Normal   I mean creating an object (plane3df) for calculating a normal seems a bit heavy for me. I know I could just write my own function but I...
by Wodzu
Sat Sep 27, 2014 4:17 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

I am trying to implement my custom loader class by inheriting IMeshLoader. The thing is that IMeshLoader.createMesh() requires to return an IAnimatedMesh. My mesh will not be animated so I do not know if I am doing it right? Is it ok to write my custom loader inheriting IMeshLoader despite the fact ...
by Wodzu
Fri Sep 19, 2014 9:44 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

But writing an own loader might be simple as well if you already have your own format. I wonder a little bit how you created your terrain if you already have it in a file as it doesn't sound like you used some tool for it which can export the usual formats? Thank you for your interest. Before I wil...
by Wodzu
Fri Sep 19, 2014 2:34 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

Try OBJ for example. There is the heightmapOptimize function which may be useful for your terrain. Is this a correct description for the OBJ file? http://en.wikipedia.org/wiki/Wavefront_.obj_file Do I need to also calculate normals or will they be calculated automatically by Irrlight? Will be enoug...
by Wodzu
Fri Sep 19, 2014 7:41 am
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Re: Few questions about terrain.

1. Depends on the format you are using. If it's a custom format then you have to write a custom loader. What simple common format could I use for my case? This is just a mesh, nothing more. 2. No - that one is special - it does not handle any triangle-mesh but uses some optimizations. That is a sha...
by Wodzu
Thu Sep 18, 2014 4:51 pm
Forum: Beginners Help
Topic: Few questions about terrain.
Replies: 15
Views: 1605

Few questions about terrain.

Hi guys, this is my first post here on forum. :) Currently I am just playing with tutorials and would like to ask you about few things regarding terrain and engine itself. 1. I have prepared my own terrain. It is a bunch of triangles stored in file. How do I load this terrain? Could you give me some...