Search found 19 matches
- 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 ...
- 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 ...
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 ...
- 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 ...
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 ...
- 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 ...
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 ...
- Thu Apr 19, 2007 1:42 am
- Forum: Irrlicht.NET
- Topic: IDE
- Replies: 8
- Views: 2807
- 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 ...
- 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 ...
- Wed Apr 18, 2007 1:44 pm
- Forum: Beginners Help
- Topic: Some simple organization questions.
- Replies: 22
- Views: 1382
Yup, you need:
Using *driver dereferences the pointer so you're dealing with the object that's being pointed to, not the pointer itself.
Code: Select all
void function(video::IVideoDriver* driver)
{
*driver = device->getVideoDriver();
}
- 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 ...
- Tue Apr 17, 2007 2:37 pm
- Forum: Beginners Help
- Topic: C++ or .NET enviroment
- Replies: 7
- Views: 804
- 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 ...
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 ...
- Mon Apr 16, 2007 10:51 pm
- Forum: Irrlicht.NET
- Topic: Quake 3 map with collision
- Replies: 5
- Views: 3837
- 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 ...
- 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 ...