How do I use Irrlicht + XCode + iPhone SDK ??
How do I use Irrlicht + XCode + iPhone SDK ??
Hi.
I see that some people here used Irrlicht on iPhone and other mobile devices with that ogles driver branch thingy.
Well, how do I get started? From starting the Xcode to running the iPhone simulator? Tried googling but had no luck.
(grafikbot? hybrid?)
I see that some people here used Irrlicht on iPhone and other mobile devices with that ogles driver branch thingy.
Well, how do I get started? From starting the Xcode to running the iPhone simulator? Tried googling but had no luck.
(grafikbot? hybrid?)
-
- Posts: 44
- Joined: Wed Dec 26, 2007 11:42 pm
The brief steps are:
- Make a basic iPhone project to start with.
- Compile Irrlicht by adding the sources to your project.
- Initialize the Irrlicht device by passing in the UIWindow as the windowID in the creation params.
- Do the usual Irrlicht rendering periodically.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Well, using Irrlicht for the iPhone is not as easy as with other, more common platforms. Better make yourself comfortable with Irrlicht on the usual PC platforms, then go for iPhone. Also make sure you understand the iPhone SDK completely before combining it with Irrlicht. Once you know both parts there shouldn't be too much problems to combine them.
Hello. First post.hybrid wrote:Well, using Irrlicht for the iPhone is not as easy as with other, more common platforms. Better make yourself comfortable with Irrlicht on the usual PC platforms, then go for iPhone. Also make sure you understand the iPhone SDK completely before combining it with Irrlicht. Once you know both parts there shouldn't be too much problems to combine them.
I'm evaluating 3d engines for iPhone. I'm looking for something that will take heightmaps and textures and give me terrain + skybox with a camera view. Also would like to be able to place a 3D objects x,y,z in that view and detect collision with the terrain/heightmap or another 3D object (or possibly billboarded 2D object if needed). I'm very familiar with iPhone at this point, but have only used OpenGLES to render in 2D up till now.
I've downloaded 1.5. I'm going to try and pull Irrlict into one of my iphone projects in Xcode. So my plan is to
1. Look at the MacOSX xcode project so I know which files to pull in.
2. pull those files into my project.
3. Look at one of the simple examples and try to get it working on iPhone.
The only thing missing in the 1.5 download seems to be the Opengles driver. Is there a link to download just that part? Or is that an entirely different download.
thanks!
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Yes, it's a completely separate branch. You can find the files here:
http://irrlicht.svn.sourceforge.net/vie ... es/ogl-es/
Either browse them with the SVN viewer, download them with the link at the bottom (GNU tarball), or use an SVN client to download the complete repository (path it branches/ogl-es).
Example 12 is doing all the things you want to do, so have a look at that tutorial. Should work without problems on the iPhone.
http://irrlicht.svn.sourceforge.net/vie ... es/ogl-es/
Either browse them with the SVN viewer, download them with the link at the bottom (GNU tarball), or use an SVN client to download the complete repository (path it branches/ogl-es).
Example 12 is doing all the things you want to do, so have a look at that tutorial. Should work without problems on the iPhone.
Thanks. For starters I tried compiling the example 12 with VC 6. It doesn't compile, there are a bunch of STL errors with notes. For now I'll just skip that and move on to the iPhone stuff. But its a little concerning.hybrid wrote:Yes, it's a completely separate branch. You can find the files here:
http://irrlicht.svn.sourceforge.net/vie ... es/ogl-es/
Either browse them with the SVN viewer, download them with the link at the bottom (GNU tarball), or use an SVN client to download the complete repository (path it branches/ogl-es).
Example 12 is doing all the things you want to do, so have a look at that tutorial. Should work without problems on the iPhone.
Understood. I just saw it there so I thought I'd give it a shot. I also have VC.net 2002 and 2003 but there were no projects for those so I didn't bother.hybrid wrote:VC6 is approx 10 years old - a time when no one ever thought about mobile devices with 3d apps. So maybe try with appropriate tools Moreover, Irrlicht dropped VC6 support about half a year ago, so, really get a better compiler.
I've pulled the first set of source files into my Xcode project. It will be great when there is a library (.a).
OK, the first part compiled and linked. I haven't pulled in zlib, libjpeg or libpng at this point because I'm not sure I will need them (I have my own libs for reading graphics files). Thanks for the pointer to the Mac project.tracerx wrote:Understood. I just saw it there so I thought I'd give it a shot. I also have VC.net 2002 and 2003 but there were no projects for those so I didn't bother.hybrid wrote:VC6 is approx 10 years old - a time when no one ever thought about mobile devices with 3d apps. So maybe try with appropriate tools Moreover, Irrlicht dropped VC6 support about half a year ago, so, really get a better compiler.
I've pulled the first set of source files into my Xcode project. It will be great when there is a library (.a).
Now on to tutorials!
Its working. I just need to figure out how to rotate the camera for landscape, and turn off my old rendering so I can get an accurate FPS reading.
Update: No joy on landscape yet.
Terrain (Example 12) is currently running at 12-13fps so I'm doing something very wrong or I need to turn something off. I'm not moving the camera or anything yet, just letting it sit there.
Another update: Getting 18-23fps in release mode. Closer.
OK turned off GUIEnvironment (which wasn't working for some reason). Now getting 28-30fps!
Update: No joy on landscape yet.
Terrain (Example 12) is currently running at 12-13fps so I'm doing something very wrong or I need to turn something off. I'm not moving the camera or anything yet, just letting it sit there.
Another update: Getting 18-23fps in release mode. Closer.
OK turned off GUIEnvironment (which wasn't working for some reason). Now getting 28-30fps!
Losing Touches in my UIView
After I spinup Irrlicht, I no longer get touch messages in my UIView. Is there a fix for this?
thx
edit: Oops, I see the engine has its own view, I'll have to redirect touches from that.
thx
edit: Oops, I see the engine has its own view, I'll have to redirect touches from that.
You can create a static library for Irrlicht on iPhone
That's what I do and it works fine.
Although it would be nice to see the source files in the static libs in the project file.
Like you can for a MS Visual Studio solution.
Although it would be nice to see the source files in the static libs in the project file.
Like you can for a MS Visual Studio solution.