Search found 16 matches

by Atraitus
Mon May 30, 2011 9:36 pm
Forum: Beginners Help
Topic: Certain Scene Nodes Not Initializing
Replies: 9
Views: 656

Nope, even with the Burnings Video renderer it produced the same segfault. I really don't know what to do from here...
by Atraitus
Mon May 30, 2011 6:04 pm
Forum: Beginners Help
Topic: Certain Scene Nodes Not Initializing
Replies: 9
Views: 656

I'm using the version provided with the SDK. I haven't gotten around to tinkering with my own compile yet (honestly, I haven't needed to modify anything in it yet).
by Atraitus
Mon May 30, 2011 4:31 pm
Forum: Beginners Help
Topic: Certain Scene Nodes Not Initializing
Replies: 9
Views: 656

Yes, I didn't change the parent node when I copied it. I set it to the Root scene node just now, and there was no change. The output of the console window isn't very helpful (at least to me), but here it is:

Irrlicht Engine version 1.7.2
Microsoft Windows 7 Professional Edition (Build 7600)
Using ...
by Atraitus
Sun May 29, 2011 11:37 pm
Forum: Beginners Help
Topic: Certain Scene Nodes Not Initializing
Replies: 9
Views: 656

The console window is stating: "Generated terrain data (512x512) in 0.3120 seconds", so I think it's really creating the terrain and reading the heightmap (which is in the same folder as the executable).

If after I declare the pointer I immediately do an
if (terrain)
check, it returns false ...
by Atraitus
Sun May 29, 2011 10:23 pm
Forum: Beginners Help
Topic: Certain Scene Nodes Not Initializing
Replies: 9
Views: 656

Certain Scene Nodes Not Initializing

So I've been sitting here puzzling for a couple of hours over this one, and numerous Google and forum searches didn't turn up a solution. I'm creating my device and other sundry things with:

windowX = 1024;
windowY = 768;
device = createDevice(EDT_OPENGL,
dimension2d<u32>(windowX, windowY), 16 ...
by Atraitus
Tue Jan 11, 2011 3:16 am
Forum: Code Snippets
Topic: Blood & Water Effects [Irrlicht 1.7.1]
Replies: 36
Views: 29534

Sorry I didn't reply earlier; today was the first day I had a chance to work on this. I've tried various permutations of

float distance = camera.pos.Y-waterpos.Y;
watercamera.pos.Y = waterpos.Y-distance;
watercamera.pos.XZ = camera.pos.XZ;

(changed to suit my code, of course), and nothing I ...
by Atraitus
Thu Jan 06, 2011 6:38 pm
Forum: Code Snippets
Topic: Blood & Water Effects [Irrlicht 1.7.1]
Replies: 36
Views: 29534

Sure, here's my project folder. This is just a test scene, to get used to the workings of Irrlicht; as such, it's a pretty sloppy mashing together of several tutorials. The project file is for Code::Blocks, and the problematic line is 120 in main.cpp.

http://www.mediafire.com/?f5pcaitcepabbm4
by Atraitus
Wed Jan 05, 2011 5:43 pm
Forum: Code Snippets
Topic: Blood & Water Effects [Irrlicht 1.7.1]
Replies: 36
Views: 29534

Okay, so I successfully got this implemented in my scene, and it looks great -- until I try to move it. As long as I just move it up and down, it continues to work. If I try to move its position, it does this:
http://i274.photobucket.com/albums/jj262/Atraitus/Untitled-3.jpg
It will flicker as I ...
by Atraitus
Tue Jan 04, 2011 4:13 pm
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Joining the meshes worked. Thanks very much, but I'm not sure why the multi-object object worked in the mesh viewer, but not in my program. I guess I'll just have to reference that code.

Anyway, now I have a whole slew of other problems to work out, but I'm sure I can on my own. Thanks again for ...
by Atraitus
Tue Jan 04, 2011 12:54 am
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Sure, here it is:

http://www.mediafire.com/?fqtc905k2v78162

All it is is the first tree from the Yo Frankie pack on OpenGameArt, I just exported pretty much as-is.
by Atraitus
Tue Jan 04, 2011 12:09 am
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

I commented out the setMaterialType and setMaterialTexture functions, and it gave me an untextured model. I'm now down to just the following:
scene::IMeshSceneNode* node = smgr->addMeshSceneNode(smgr->getMesh("tree.obj"),0,-1,core::vector3df(1922.f,360.f,450.f),
core::vector3df(0.f,0.f,0.f),core ...
by Atraitus
Mon Jan 03, 2011 11:08 pm
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Huh, it loaded up fine in the meshviewer. Must be my code, then. Here's what I've got:

scene::IMeshSceneNode* node = smgr->addMeshSceneNode(smgr->getMesh("tree.obj"),0,-1,core::vector3df(1922.f,360.f,450.f),
core::vector3df(0.f,0.f,0.f),core::vector3df(75.0f,75.0f,75.0f));

node->setMaterialFlag ...
by Atraitus
Mon Jan 03, 2011 4:25 pm
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Yes, both are there. The .obj starts out with:
# Blender v2.56 (sub 0) OBJ File: 'trees_0.blend'
# www.blender.org
mtllib tree.mtl

The .mtl is (irrelevant parts cut):
# Material Count: 2
newmtl tree_brown_trees_bark_002_col
...
illum 1
map_Kd bark.jpg


newmtl browntreeleaves_trees_leaves_003 ...
by Atraitus
Mon Jan 03, 2011 3:57 pm
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Yes, the .mtl and both textures are in the same folder as the .obj (I'm loading from a zip archive, if that makes any difference). The .mtl definitely isn't loading automatically. I exported the model from Blender, originally in a .blend file.

If I'm reading your advice correctly, it seems I ...
by Atraitus
Mon Jan 03, 2011 12:18 am
Forum: Beginners Help
Topic: mtl Texture refuses to load
Replies: 16
Views: 6257

Edit: It seems I was hopelessly misinformed. I have changed my code to the following:
node->setMaterialTexture(0,driver->getTexture("bark.jpg"));
node->setMaterialTexture(1,driver->getTexture("leaf.png"));

Now the model will get one texture, whichever is the texture layer 0. I'm not quite sure ...