Search found 13 matches

by ignorator
Mon Oct 15, 2007 10:51 pm
Forum: Beginners Help
Topic: recalculateNormals
Replies: 3
Views: 564

so if u wanted to smooth that normals u would have to find the vertices with equal positions and sum the triangle normals they belong to?

sounds like a slow solution.
by ignorator
Mon Oct 15, 2007 10:36 pm
Forum: Beginners Help
Topic: recalculateNormals
Replies: 3
Views: 564

recalculateNormals

does this normal smoothing work when recalculating the normals?

Code: Select all

man->recalculateNormals(mesh, true);

Code: Select all

man->recalculateNormals(mesh, false);

i can't see any difference on my test - sphere. it doesn't look smoothed.
by ignorator
Wed Oct 03, 2007 10:53 pm
Forum: Everything 2d/3d Graphics
Topic: uv lightmap
Replies: 3
Views: 1402

thx... but actually i was looking for a way to calculate them on the fly in my program. but i'm not sure how an unwrapping algorithm might work.
by ignorator
Wed Oct 03, 2007 10:48 pm
Forum: Everything 2d/3d Graphics
Topic: uv lightmap
Replies: 3
Views: 1402

uv lightmap

Hi,

i want to calculate the u,v coordinates for a given mesh for lightmapping...

I was looking for a tutorial but i only found tutorials for some sort of 3d modelling software.

greetings
ignorator
by ignorator
Tue Oct 02, 2007 11:37 pm
Forum: Beginners Help
Topic: IMeshbuffer::getMaterial()
Replies: 6
Views: 549

Ah ok that explains it...

thank you :D
by ignorator
Tue Oct 02, 2007 10:26 pm
Forum: Beginners Help
Topic: IMeshbuffer::getMaterial()
Replies: 6
Views: 549

ok here is my testcase

its pretty much the same as helloworld but without the animation:


#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht ...
by ignorator
Tue Oct 02, 2007 9:57 pm
Forum: Beginners Help
Topic: IMeshbuffer::getMaterial()
Replies: 6
Views: 549

well it doesnt work :(

cmeshbuffer.h:

Code: Select all

	//! returns the material of this meshbuffer
		virtual video::SMaterial& getMaterial()
		{
			return Material;
		}
i think it returns a copy of Material via the copyconstructor?
by ignorator
Tue Oct 02, 2007 9:42 pm
Forum: Beginners Help
Topic: IMeshbuffer::getMaterial()
Replies: 6
Views: 549

IMeshbuffer::getMaterial()

im trying to reset some textures inside a IMesh but it doesn't work.
getMaterial() returns a copy of the Material and not a pointer?
how do i get a pointer to the Material?

irr::video::SMaterial& mat = mesh->getMeshBuffer(meshbuffer_id)->getMaterial();
mat.Textures[1] = tex;
mat.Textures[0 ...
by ignorator
Sun Sep 30, 2007 8:39 pm
Forum: Beginners Help
Topic: vertex deallocation
Replies: 3
Views: 614


You should never call a delete on a pointer pointing to a mesh or a scenenode handled by irrlicht. Always call a ->drop(); See IUnknown for details.


I have looked at IUnknown. The comment said one sould only call drop() if the pointer was initialised via a createSomething().... method...

A ...
by ignorator
Sun Sep 30, 2007 3:24 pm
Forum: Beginners Help
Topic: vertex deallocation
Replies: 3
Views: 614

vertex deallocation

Hi :D

I'm copying vertices from a mesh to a new structure.

the mesh is loaded like this:


scene::IAnimatedMesh* testmesh = smgr->getMesh("../../media/test.3ds");


now I want to get rid of the old vertices in the testmesh.
When I call delete testmesh I think the vertices remain in memory. Must ...
by ignorator
Sun Sep 23, 2007 8:08 pm
Forum: Beginners Help
Topic: irrlicht.lib
Replies: 2
Views: 282

yes sorry i found it ;)

for some reason it was not extracted of the zip
by ignorator
Sun Sep 23, 2007 7:49 pm
Forum: Beginners Help
Topic: irrlicht.lib
Replies: 2
Views: 282

irrlicht.lib

Hi i'm trying to compile a example of irrlicht with Visual Studio 2005 (prof).

i followed the Hello World tutorial:

We also need the irrlicht.lib to be found, so select 'show directories for Library files' and add the \lib\VisualStudio directory.


but in this directory there is no irrlicht.lib ...
by ignorator
Fri Sep 21, 2007 1:39 am
Forum: Beginners Help
Topic: octree
Replies: 0
Views: 279

octree

hi i'm new to the irrlicht engine and ive a questions about the octree:

can i add meshes to an existing octree scene node after it has been initially created?

when i add another actree scenenode is it somehow merged into the existing scenenode?

if not: how could i dynamically add/remove meshes ...