Search found 28 matches
- Mon Jan 05, 2009 3:51 pm
- Forum: Beginners Help
- Topic: Need a method for drawing a very large height map.
- Replies: 3
- Views: 346
Need a method for drawing a very large height map.
This is a question for guidance. I am going to be using Digital Elevation Maps to create 16-bit Grayscale PNG file of a large landmass (IE: State/Nation). Then use that file to generate terrain in Irrlicht. The problem I am having is that the files appear to be to large for Irrlicht to handle. I am ...
- Fri Jan 12, 2007 9:10 am
- Forum: Beginners Help
- Topic: draw 2d image with alpha channel and alpha blending
- Replies: 11
- Views: 1745
Do you have Irrlicht 1.2, or are you using an older version? There had been some parts missing in the past, but I think most of them were already solved in 1.1. In case you have the latest version please post your complete code and a screenshot from ogl and dx to see the differences. It should work...
- Fri Jan 12, 2007 1:52 am
- Forum: Beginners Help
- Topic: draw 2d image with alpha channel and alpha blending
- Replies: 11
- Views: 1745
Please read the API where you will find an alpha value for the whole image inside the SColor element. I had read the api...the problem I found had to be with me using EDT_OPENGL I switched to EDT_DIRECT3D9 and it works properly. Now it shows it translucent. Out of curiosity is this a opengl limitat...
- Thu Jan 11, 2007 11:51 pm
- Forum: Beginners Help
- Topic: draw 2d image with alpha channel and alpha blending
- Replies: 11
- Views: 1745
Did you have a look at the tutorial demonstrating rendering 2D objects? That uses transparency. It's in the examples directory of the distribution. Yea I have it rendering the object with the background transparent. Exactly how the 2d demo does. The issue i'm having is alpha blending the image so i...
- Thu Jan 11, 2007 11:42 pm
- Forum: Beginners Help
- Topic: draw 2d image with alpha channel and alpha blending
- Replies: 11
- Views: 1745
draw 2d image with alpha channel and alpha blending
I have searched the forum and didn't find a straight answer but perhaps I didn't search with the best logic. I am drawing a 2d image using draw2DImage(...) and using the alpha channel of the texture. The part that i'm not finding an answer for is on how to alpha blend that 2dimage. I would like to b...
- Sun Dec 31, 2006 6:49 pm
- Forum: Beginners Help
- Topic: Want to draw only a certain part of an image to a billboard
- Replies: 9
- Views: 360
ahhh, try it like this: driver->draw2DImage( images, rect<s32>(0,0,342,224), //position2d<s32>(50,50), rect<s32>(0,0,342,224), 0, 0, true ); because the color in this function is an array of 4 colors to specify the colors of the 4 corners (look at the api for more info)... ;) Awesomeness! It works....
- Sun Dec 31, 2006 5:41 pm
- Forum: Beginners Help
- Topic: Want to draw only a certain part of an image to a billboard
- Replies: 9
- Views: 360
It should work, maybe your rects are not correct ??? I simply made the code state that I want the dest rect to be the same size as the source rect. If I don't use dest and source it draws everything. with dest and source: http://img461.imageshack.us/img461/6462/destandsourckt9.th.jpg using position...
- Sun Dec 31, 2006 8:20 am
- Forum: Beginners Help
- Topic: Want to draw only a certain part of an image to a billboard
- Replies: 9
- Views: 360
I tried getting the transformation then using setScale but no matter what I change the values to I get no difference in rendering. It still renders the 2d image the exact same width and height. I get the feeling im doing something simple and just over looking it. IrrlichtDevice *device = createDevic...
- Fri Dec 29, 2006 4:24 am
- Forum: Beginners Help
- Topic: Want to draw only a certain part of an image to a billboard
- Replies: 9
- Views: 360
Want to draw only a certain part of an image to a billboard
I am trying to write an app where I show plain 2d images on the left and right. These will be loaded in by the user so the size is unknown to me. I started using the draw2DImage() function but couldn't find a way to scale the image down if the user was to give me an image that did not fit within the...
- Thu Dec 28, 2006 10:48 pm
- Forum: Open Discussion and Dev Announcements
- Topic: animation in 2D fighting game
- Replies: 3
- Views: 534
- Wed Dec 27, 2006 6:58 pm
- Forum: Beginners Help
- Topic: Drawing 2d in Multiple Viewports
- Replies: 4
- Views: 263
- Wed Dec 27, 2006 6:29 pm
- Forum: Beginners Help
- Topic: Drawing 2d in Multiple Viewports
- Replies: 4
- Views: 263
I commented the smgr->drawAll() calls out and it renders the images but they are still both being rendered in the right side of the screen. But that is something I didn't know because I was just looking into using multi scene managers thinking that was the issue. Thanks for the info on that....I kno...
- Wed Dec 27, 2006 6:14 pm
- Forum: Beginners Help
- Topic: Drawing 2d in Multiple Viewports
- Replies: 4
- Views: 263
Drawing 2d in Multiple Viewports
My problem is that I want to render only 2d images to each viewport. When I make a call to draw2DImage() after using setViewPort() to state which viewport I want to render to it all ends up rendering in one viewport. Also, since i'm only wanting to render 2d images I am under the impression that I d...