Search found 27 matches

by Wodzu
Thu Nov 26, 2015 1:27 pm
Forum: Everything 2d/3d Graphics
Topic: Applying texture on terrain nesh.
Replies: 3
Views: 4035

Re: Applying texture on terrain nesh.

And what should I do if I have a very large terrain? I understand that I need to have smaller textures. For example instead of 1024x1024 texutre I am splitting it to four 512x512 textures. But how I can apply them to my mesh? Like in the example: http://s27.postimg.org/tl2rz858z/Terrain.png The prob...
by Wodzu
Mon Nov 23, 2015 9:45 pm
Forum: Everything 2d/3d Graphics
Topic: Applying texture on terrain nesh.
Replies: 3
Views: 4035

Applying texture on terrain nesh.

Hi guys. I have a problem with understanding how to achieve good results (for the eye) when applying texture on a terrain mesh. I know what U-V coordinates are and I know how to apply texture to mesh. It is hard for me to explain what I do not understand ;) so I will try to show it on an example. I'...
by Wodzu
Tue Feb 17, 2015 9:26 pm
Forum: Open Discussion and Dev Announcements
Topic: Is Irrlicht Dead?
Replies: 13
Views: 5024

Re: Is Irrlicht Dead?

@Wodzu: For a while we had nightly-builds, but last time I checked it was no longer active. The problem with real releases is that they take some time: https://sourceforge.net/p/irrlicht/code/HEAD/tree/trunk/doc/release_checklist.txt We should probably automize it some more (but with doing that jus...
by Wodzu
Sun Feb 15, 2015 9:09 am
Forum: Open Discussion and Dev Announcements
Topic: Is Irrlicht Dead?
Replies: 13
Views: 5024

Re: Is Irrlicht Dead?

No, Irrlicht is not dead. 2014 development was even a little up from the year before. But the main programmer hasn't shown up for a while (busy with job) and so currrently it's mainly Nadro and me developing. I try to keep up with testing and applying patches and fixing bugs reported by the communi...
by Wodzu
Wed Feb 11, 2015 5:52 pm
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

Re: How to achieve flat shading without texture?

Thank you guys :)

It works as expected:

Image
by Wodzu
Wed Feb 11, 2015 6:48 am
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

Re: How to achieve flat shading without texture?

Maybe you should lighten up! ;-) Oh I am very bright person, trust me ;-) I can't see any lights in your code. Where do you create them? The thing is I do not know how to properly create a light. I will try to use this post as a reference: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=1&...
by Wodzu
Tue Feb 10, 2015 8:34 pm
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

Re: How to achieve flat shading without texture?

Hi Mate, Try below: Hi mate, thank you. Unfortunately that did not help. I've prepared a full example here, if you would be so kind to take a look at it:   #include <irrlicht.h> #include "SMesh.h" #include "SMeshBuffer.h" #include "ISceneNodeAnimator.h" #include "...
by Wodzu
Mon Feb 09, 2015 6:30 pm
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

Re: How to achieve flat shading without texture?

thanhle wrote:I think for flat shading you would do:

sceneNode->setMaterialFlag(E_MATERIAL_FLAG::EMF_GOURAUD_SHADING, false);

Regards
thanh
Unfortunately setting this causes no effect.
by Wodzu
Mon Feb 09, 2015 6:18 am
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

Re: How to achieve flat shading without texture?

I just looked through the material types and there is none for vertex colour, they all require at least one texture. Thank you for that :) But you could use a paint program and create a texture which has a solid colour throughout. I was thinking about that but even if I do this I will end up having...
by Wodzu
Sun Feb 08, 2015 1:36 pm
Forum: Beginners Help
Topic: How to achieve flat shading without texture? [SOLVED]
Replies: 13
Views: 2367

How to achieve flat shading without texture? [SOLVED]

Hi guys, Today I wanted to ask is it possible to have a flat shading without texture on mesh? Currently I do not want to be disctracted by the textures, I would like to see only flat shading of my mesh on solid color. For example, take a look at this: I had to add random texture for this two meshes ...
by Wodzu
Wed Feb 04, 2015 11:36 am
Forum: Beginners Help
Topic: Triangles not displayed properly. [SOLVED]
Replies: 7
Views: 849

Re: Triangles not displayed properly.

It's the same thing with normals on sharp edges, they can't share vertices. For example, a proper cube mesh requires 24 vertices instead of 8, because every corner has 3 normals instead of 1, so needs 3 vertices. Thanks about mentioning normals, I'd probably fell into the same trap and wonder why m...
by Wodzu
Wed Feb 04, 2015 10:04 am
Forum: Beginners Help
Topic: Triangles not displayed properly. [SOLVED]
Replies: 7
Views: 849

Re: Triangles not displayed properly.

Looks like when you are pushing the vertices into the meshbuffer, you are pushing them in the order specified by the indices, but then still using indices. I think I understand now my mistake. I thought that I am pushing 5 vertices to the Vertices but I am pushing 12 of them! And because of that my...
by Wodzu
Tue Feb 03, 2015 9:43 pm
Forum: Beginners Help
Topic: Triangles not displayed properly. [SOLVED]
Replies: 7
Views: 849

Re: Triangles not displayed properly.

Don't see an error so far. SColor::set has the order a,r,g,b - just mentioning it as I guess you expected r,g,b,a given your rand()'s. Exactly, I've messed that up, thanks. I was trying to color each triangle separately to help myself in seeing what is wrong, but colors are interpolated between ver...
by Wodzu
Tue Feb 03, 2015 8:43 pm
Forum: Beginners Help
Topic: Triangles not displayed properly. [SOLVED]
Replies: 7
Views: 849

Triangles not displayed properly. [SOLVED]

Hi guys. I am having problem with displaying all the triangles from my mesh. I am fighting with this for many hours without any success, so I would much appreciate your help. Here is a simplified case of my mesh: http://s22.postimg.org/wezsqg2dt/mesh_01.png As you see, it is built from four triangle...
by Wodzu
Mon Nov 03, 2014 4:20 pm
Forum: Code Snippets
Topic: RTS Camera Animator
Replies: 2
Views: 2719

Re: RTS Camera Animator

Hi, thanks for sharing but this code does not work.

It misses some ITimer parameters, for example in the constructor. But even after fixing the code I was not able to see anything through the camera, perhaps a small example with camera looking at something would be helpful.

Regards.