Search found 19 matches

by bigfish
Sun May 13, 2007 9:27 pm
Forum: Advanced Help
Topic: Can't disable Gouraud shading!
Replies: 1
Views: 360

Can't disable Gouraud shading!

I created a custom scene node that simply draws a textured plane with DrawIndexedTriangleList. All I want is flat shading. When I just set colors for each of the vertices, everything looks fine. However, when I create and assign a texture to a material for the plane, the texture draws correctly but ...
by bigfish
Thu May 10, 2007 6:18 pm
Forum: Advanced Help
Topic: createImageFromData() and addTexture()
Replies: 4
Views: 795

createImageFromData() and addTexture()

Hi all,

I'm trying to create a texture in memory and apply it to some geometry. I'm actually using Irrlicht.NET CP but I've added wrappers for the createImageFromData() and addTexture() functions, which seem to be working. I posted some questions about that here:

http://irrlicht.sourceforge.net ...
by bigfish
Thu May 10, 2007 6:00 am
Forum: Irrlicht.NET
Topic: Creating textures programmatically (Urgent!)
Replies: 1
Views: 2478

Time for one more!

Okay, another status update. :) It seems that IrrlichtW.dll was in fact the missing link. I added the necessary stuff to that and I'm now able to get past the CreateImageFromData call without throwing an exception! However, I also added the missing AddTexture(string name, Image ...
by bigfish
Thu May 10, 2007 4:47 am
Forum: Irrlicht.NET
Topic: Creating textures programmatically (Urgent!)
Replies: 1
Views: 2478

Creating textures programmatically (Urgent!)

Hey all,

My apologies in advance - this is a cross post from the Irrlicht.NET CP forum, not the official Irrlicht.NET port. I'm desperate for help!! I posted two messages over there tonight, here they are:

I need to be able to create a texture in memory and apply that to a material in Irrlicht ...
by bigfish
Thu Apr 19, 2007 1:42 am
Forum: Irrlicht.NET
Topic: IDE
Replies: 8
Views: 2807

Are you launching the exe from the IDE or opening it yourself? If you're using the IDE, maybe you should double check what it's using as the current directory and make sure the DLL is in fact in that directory. Or just stick it in the Windows system directory or something.
by bigfish
Thu Apr 19, 2007 1:29 am
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1382

I think the goal of most of these posts has been to modify the value of a variable being passed to a function, not change where a pointer is pointing to. If you did actually want to do what you showed in your code though, it's much cleaner to just return a pointer from the function rather than using ...
by bigfish
Wed Apr 18, 2007 1:50 pm
Forum: Advanced Help
Topic: Rendering dynamic textures
Replies: 6
Views: 1178

I could be mistaken but I don't think OpenGL lets you use textures that aren't powers of two. You just need to use a texture that's as big as or bigger than the texture you're trying to display and adjust the texture coordinates of the polygon so it only renders the portion of the texture that you ...
by bigfish
Wed Apr 18, 2007 1:44 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1382

Yup, you need:

Code: Select all

void function(video::IVideoDriver* driver)
{
     *driver = device->getVideoDriver();
}
Using *driver dereferences the pointer so you're dealing with the object that's being pointed to, not the pointer itself.
by bigfish
Tue Apr 17, 2007 3:11 pm
Forum: Beginners Help
Topic: createScreenShot speed
Replies: 11
Views: 916

Have you tried rendering everything to a texture? I'm really not sure how that works but since there are plenty of games where it looks like that can be done in real time, I would guess it's somehow less costly. Maybe you could render your whole scene to a texture, display said texture on the screen ...
by bigfish
Tue Apr 17, 2007 2:37 pm
Forum: Beginners Help
Topic: C++ or .NET enviroment
Replies: 7
Views: 804

Pedrosal, just one little typo that could be confusing...

.NET (C# included) is not interpreted. In an assembly it is stored in intermediate language. When required the IL is compiled into native code. You can optimize an assembly to a given CPU... the compilation is then made on compile time

I ...
by bigfish
Tue Apr 17, 2007 12:22 am
Forum: Irrlicht.NET
Topic: Spawn points in Quake 3 maps
Replies: 0
Views: 1650

Spawn points in Quake 3 maps

[This is cross-posted from the Irrlicht.NET CP forums]

Is there an easy way to get the spawn point entities from a Quake 3 map? I saw a few oldish posts about this on the Irrlicht forums but the only solution I found was a rather complex entity reader written in C++. Not something I really feel ...
by bigfish
Mon Apr 16, 2007 10:51 pm
Forum: Irrlicht.NET
Topic: Quake 3 map with collision
Replies: 5
Views: 3837

I had this problem too and the problem seems to be in the collision response animator. I have no idea why this happens, but changing the slidingValue parameter in CreateCollisionResponseAnimator (that's the last parameter) to something very small but not 0 fixes it. I've got this ...
by bigfish
Mon Apr 16, 2007 10:04 pm
Forum: Beginners Help
Topic: Some simple organization questions.
Replies: 22
Views: 1382

Yikes... When dealing with pointers, relying on things like "it just works" is a bad idea. You could be lucking out at the moment but when running it under slightly different conditions, you could be trampling some memory that you shouldn't be touching. When you're passing in a variable like this ...
by bigfish
Mon Apr 16, 2007 9:28 pm
Forum: Beginners Help
Topic: C++ or .NET enviroment
Replies: 7
Views: 804

If by "advantages" you mean memory leaks, painful string manipulation, and pointer headaches, then yes, C++ has lots of advantages. ;) C++ is indeed a great language but for a school project I highly recommend going with C#. Chances are you're not looking for tip-top runtime speed but development ...
by bigfish
Thu Mar 29, 2007 1:01 pm
Forum: Off-topic
Topic: C#...
Replies: 7
Views: 758

When you think "C#", don't think "C++". Think "Java". C# started off as a complete Java clone but has evolved from there. I think it's quite a bit better than Java now. Of course I have never really been fully on the Java bandwagon, mainly because of the performance hit that comes with an ...