• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Jorge Reto

BIM rendering tool for game development in opengl or ogre3d

6 posts in this topic

I am planning on developing a game in opengl or ogre3d and I have the BIM model of a building I would like to "import" into the game!
I know there are some tools capable of rendering BIMs but I'm not sure if it is possible to use them to render the building and then develop the game over it

Is this possible? if yes can someone tell me a good tool to that this?

0

Share this post


Link to post
Share on other sites

Doesn't your BIM application support exporting to common 3D file format (3ds, fbx, collada, ase, obj)? Which BIM app you want to use? I rendered a building from Revit in my DirectX app no problem, I just exported it from Revit as obj and loaded with Assimp.
 
EDIT:
 
I noticed you mentioned Revit in tags. If you worked with Revit you should know Jeremy Tammik's blog, here's a post on Revit 2014 obj exporting:
 
Blog Post.

Edited by Tasaq
1

Share this post


Link to post
Share on other sites

When you talk about rendering: it is possible to bring the model to Blender via .obj for example and use it to adjust textures and UV maps and bake lighting into the model textures.

1

Share this post


Link to post
Share on other sites

When you talk about rendering: it is possible to bring the model to Blender via .obj for example and use it to adjust textures and UV maps and bake lighting into the model textures.

 

This. In case of Revit you need to write your own exporter (as ExternalCommand in Revit Add-in). Chances are that UV will be messed up. I think that using 3D editing tool for post processing will be a must. Another problem that could appear is that geometry could be 'overtessellated', so you probably will want to optimize things a bit.

0

Share this post


Link to post
Share on other sites

Thank you for your replies.

 

Yes I have the REVIT model but I am not sure exporting to an obj file is a good idea in my case. Correct me if I am wrong but from what I know it will be nearly impossible to detect colisions with the with walls and doors. The basic idea of the game is to explore the building and find hidden object. For that I can't lose the information I have on revit about the doors location for example unsure.png

0

Share this post


Link to post
Share on other sites

Thank you for your replies.

 

Yes I have the REVIT model but I am not sure exporting to an obj file is a good idea in my case. Correct me if I am wrong but from what I know it will be nearly impossible to detect colisions with the with walls and doors. The basic idea of the game is to explore the building and find hidden object. For that I can't lose the information I have on revit about the doors location for example unsure.png

 

From my point of view it's doable, but I have been working with Revit API for some time now. From API you can do a lot, you can even export separate elements to separate files. You don't have to export to obj, it's just example. The main problem here is writing your own exporter. I have no idea how much experience you have, but here's my first idea:

 

Revit works on Elements, door is example of such element. You can filter elements to get only doors. You can create level file (for instance in XML or Json) which will store world transform of a door and it's model name/id. While loading the building in you game, you can use such file to find and place doors with your door physics behaviour.

 

Note it's just quick idea so it can have a lot of flaws :)

0

Share this post


Link to post
Share on other sites
For that I can't lose the information I have on revit about the doors location for example

 

 

You will likely lose that information if you don't write a custom exporter. But it's not a big deal because depending on the complexity and detail level of your BIM model I suggest you should make a separate collision model for the building. If you have relatively simple shapes you could export doors separately and the rest of the objects as another object that you can set the collision detection for.

 

If you want to doors that can be opened and closed instead of walked through you'll need to do a lot more than simple conversion from BIM. You need to probably separate the door from the frame and set up door hinges using physics joints.

 

Speaking of which you've mentioned Ogre3D and OpenGL but where do you plan on handling the rest of the game? Player, collision, game logic? If you aren't set with a particular game engine, for a pretty straight forward and manageable workflow I might recommend Blender Game Engine. Here's how I would do it:

 

Model preparation (this part probably takes the most expertise to get good looking results and you can't really easy-mode it IMO)

--------------------------------

- import object(s) to Blender using whatever format you think works best

- correct textures and UV, adjust meshes etc, unwrap texture atlas using lightmap

- set up lighting using Sun and hemi lamps plus whatever you want to add indoors

- bake AO lighting

 

Game set up:

--------------------------------

- set the building model to static which uses it for colliding, set doors model to no collision. Alternatively make one instance of rotating door and clone it to all door locations in your model

- add a player sphere, set it to dynamic, implement WASD movement via the visual programming system in Blender plus mouselook script you can find online

- add a collectible object template with near sensor to the player so it can be picked up and place instances of the object around the map

- make couple lines of script that check how many collectibles remain in the game world and end the game when it reaches 0

 

Finishing:

-------------------------------

- playtest, fix visual errors, make locations interesting

- export as standalone .exe and share ^^

Edited by ShadowFlar3
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0