Thanks I understand it now,
To anyone wondering how to do this: http://www.digitalrebellion.com/webapps ... _calc.html
Get the ratio and times it by the height units.
Search found 9 matches
- Sat Sep 14, 2013 4:24 pm
- Forum: R.U.B.E discussion
- Topic: Rube image x
- Replies: 2
- Views: 10372
- Fri Sep 13, 2013 8:36 pm
- Forum: R.U.B.E discussion
- Topic: Rube image x
- Replies: 2
- Views: 10372
Rube image x
So the images in rube have a height in world units which is for example 20 but what about the width in world units? how am I supposed to work this out? I cant figure out anything, for example images.json has the background image as height 20 and aspect 1, there does not seem to be a width variable.
- Mon Sep 09, 2013 4:15 pm
- Forum: R.U.B.E discussion
- Topic: Rube textures question
- Replies: 3
- Views: 10306
Re: Rube textures question
Ok so corners is the same as points? In reality I only need points and uvcoords then with gldrawelements call?
Have you tested this? Should I be drawing it with GL_TRIANGLES or what?
Have you tested this? Should I be drawing it with GL_TRIANGLES or what?
- Sun Sep 08, 2013 8:38 pm
- Forum: R.U.B.E discussion
- Topic: Rube textures question
- Replies: 3
- Views: 10306
Rube textures question
Hi, I have recently purchased Rube to use on my project, its going well but I am having trouble displaying textures on the screen in my engine. I am using Marmalade SDK for mobile devices. So I successfully get the list of textures and load them but I am not sure what some of the member data variabl...
- Fri Aug 30, 2013 7:26 pm
- Forum: R.U.B.E discussion
- Topic: Rube loader
- Replies: 7
- Views: 21011
Re: Rube loader
Ok thanks it works now, was a bit confusing about the .json and .rube files.
- Fri Aug 30, 2013 6:51 pm
- Forum: R.U.B.E discussion
- Topic: Rube loader
- Replies: 7
- Views: 21011
Re: Rube loader
Debug info from Qt:
- Fri Aug 30, 2013 6:44 pm
- Forum: R.U.B.E discussion
- Topic: Rube loader
- Replies: 7
- Views: 21011
Re: Rube loader
I am deciding whether I should buy the full version, I am using the images.json file from the trial folder. What seems to happen is it loads some stuff in the json loader but as soon as it gets to b2World* b2dJson::j2b2World(Json::Value worldValue) the worldValue contains map[0] (1 element only) = m...
- Fri Aug 30, 2013 6:09 pm
- Forum: R.U.B.E discussion
- Topic: Rube loader
- Replies: 7
- Views: 21011
Re: Rube loader
The error message is blank and I tried to step through but its damn confusing stepping through the giant json loader header ;(
- Thu Aug 29, 2013 11:20 pm
- Forum: R.U.B.E discussion
- Topic: Rube loader
- Replies: 7
- Views: 21011
Rube loader
I am using the code from SFML rube loader, it seems not not actually get any data from the rube json file resulting in a world with 0 in each field. I really have no idea how to fix this, I am on Qt GCC compiler and box2D was also compiled with that. I just copied all the header and source from json...