Instead of casting to float, just put f after the numbers, and use decimals also for numbers like 10.
10.0f,.05f,1.0f,10.0f
Search found 18 matches
- Sun Aug 30, 2009 4:12 pm
- Forum: Code Snippets
- Topic: physics for a hovercraft
- Replies: 2
- Views: 1432
- Tue Aug 25, 2009 1:53 pm
- Forum: Beginners Help
- Topic: How to change resolution?
- Replies: 8
- Views: 957
- Sun Aug 23, 2009 4:25 pm
- Forum: Beginners Help
- Topic: Change resolution during runtime
- Replies: 1
- Views: 209
Change resolution during runtime
Is this possible, and if so, how do I do it?
I have managed to do it by destroying and recreating my Irrlicht device, but when I do so, all resources are removed, so if I change the resolution this way while drawing anything it crashes anyway.
Is there another way to do it?
I have managed to do it by destroying and recreating my Irrlicht device, but when I do so, all resources are removed, so if I change the resolution this way while drawing anything it crashes anyway.
Is there another way to do it?
- Sat Aug 22, 2009 11:30 pm
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
- Sat Aug 22, 2009 6:56 pm
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
- Fri Aug 14, 2009 1:17 pm
- Forum: Game Programming
- Topic: [Peer Review]: "Milliseconds vs. FPS"
- Replies: 10
- Views: 3870
I have written some classes to help me with this kind of problem. With help from the ITimer value, as it ticks on, I have made timer classes of my own. The most important one in this case, is my TimeScroller , which increases or decreases a value over time. Maybe I want to move an object from positi...
- Thu Aug 13, 2009 6:43 am
- Forum: Project Announcements
- Topic: XEffects - Reloaded - New Release (V 1.4)
- Replies: 826
- Views: 433772
I compiled this myself: http://i375.photobucket.com/albums/oo191/Skomakarn/xfx3.png Looks good to me, so I guess it must be something wrong with my setup. I will try using your plugin to get the right values, and see if it helps. Thanks. EDIT: ... In your video tutorial, the cube is affected by the ...
- Wed Aug 12, 2009 7:04 am
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
The table, cup, pen and notebook all are one image, the size of the window. Then every item in the menu is one menu, but only half the image is drawn, using clipping. One half of the image is the unhovered button, and one part is the hovered one. Then the pencil cursor is semitransparent, with antia...
- Wed Aug 12, 2009 6:59 am
- Forum: Project Announcements
- Topic: XEffects - Reloaded - New Release (V 1.4)
- Replies: 826
- Views: 433772
- Wed Aug 12, 2009 6:12 am
- Forum: Project Announcements
- Topic: XEffects - Reloaded - New Release (V 1.4)
- Replies: 826
- Views: 433772
I just get a segmentation fault when trying to get the video driver after creating the Irrlicht device with D3D (both 8 and 9, so is it just not installed?), so I can't try it out, it seems. Here are two screenshots from the first example, running at the settings 123 (OpenGL, 1024, 8): http://i375.p...
- Mon Aug 10, 2009 10:41 am
- Forum: Project Announcements
- Topic: XEffects - Reloaded - New Release (V 1.4)
- Replies: 826
- Views: 433772
When I include XEffects, I get plenty of errors saying me that I don't have dimension2du specified. What's the problem? I'm using 1.5.1. Thanks, Geo. Either you do a quick replacement of any occurence of dimension2du and change it to dimension2di, or you make a type definition, after loading Irrlic...
- Mon Aug 10, 2009 10:25 am
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
Well, the work-around would be to disable NPOT for some card lines - so we'd need to know which hw driver and card type this happens on. I'll boot her computer up right away, and see if it happens on this one. If it does, I'll tell you about the card it has. Still I'm wondering, though, if disablin...
- Mon Aug 10, 2009 8:49 am
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
Whyt kind of gfx card do you have? Did you install the latest drivers? IIRC, ATI has major problems with NPOT features, so we might add a work-around if that's the case. We need a proper test for this, though, so maybe you don't want to install latest drivers and lend us a hand while testing the wo...
- Mon Aug 10, 2009 5:25 am
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
So, you're saying using GUI images instead wouldn't make a difference, either? Is it notably slow disabling such a feature, or could I use it at least once every frame, to enable for the 3D, and then disable for the 2D (if disabling it means any difference to the 3D, of course; exactly what is NPOT-...
- Sun Aug 09, 2009 11:57 pm
- Forum: Bug reports
- Topic: Drawn 2D images are messed up on some computers (most)
- Replies: 16
- Views: 1723
Are your texture non-power-of-two? In that case it depends if the cards to support that - and many cards don't. To test if that's the reason just use some textures with sizes like 256, 512, 1024 and check if is fine then on other computers. Yes, they are. I know that might cause problems when using...