LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2009, 11:27 AM   #1
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Rep: Reputation: 15
C++ 3D


Hello
Is it possible to make a 3D animation with C++, only by code???
Like a Character for a game??
 
Old 01-25-2009, 11:31 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Yes it is possible, but it is much harder than using a tool such as blender, than finding a way to import your models.
 
Old 01-25-2009, 12:45 PM   #3
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by matthewg42 View Post
Yes it is possible, but it is much harder than using a tool such as blender, than finding a way to import your models.
Sweet. Thanks. I know python is great for Blender but I'd like to try C++ for creating 3D animation.
 
Old 01-25-2009, 01:40 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
What sort of thing are you planning to do?

A typical setup would be to use some sort of games engine library like Ogre3d or Crystalspace to import models which you create in blender. These libraries should provide the tools you need to import 3d objects created with blender.

If you want to go a little lower level, you could use QT to give you a GL rendering context, and then some separate library for parsing the 3d object files (or even try to implement something like this yourself, although it seems a waste of effort given that this work has already been done by others).

Once you have the objects in your program, you can manipulate them how you like, but be aware that they are going to be pretty complicated objects.

The lowest level approach of all is to use GLUT or a similar library which gives you a GL rendering context, and make any objects yourself.

An alternative approach is to use the build in blender game engine. You don't need to write any code for that at all, although you can use python scripting to add complexity.
 
Old 01-25-2009, 02:42 PM   #5
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by matthewg42 View Post
What sort of thing are you planning to do?

A typical setup would be to use some sort of games engine library like Ogre3d or Crystalspace to import models which you create in blender. These libraries should provide the tools you need to import 3d objects created with blender.

If you want to go a little lower level, you could use QT to give you a GL rendering context, and then some separate library for parsing the 3d object files (or even try to implement something like this yourself, although it seems a waste of effort given that this work has already been done by others).

Once you have the objects in your program, you can manipulate them how you like, but be aware that they are going to be pretty complicated objects.

The lowest level approach of all is to use GLUT or a similar library which gives you a GL rendering context, and make any objects yourself.

An alternative approach is to use the build in blender game engine. You don't need to write any code for that at all, although you can use python scripting to add complexity.
Sound I have to use Blender and python then.
 
Old 01-25-2009, 02:51 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Learning blender is non trivial. It's got a huge amount of functionality, and it will take a long time to become proficient with it. I believe it's worth the effort if you are interested in 3d gfx. Especially if you want to make a living as a 3d artist.
 
Old 01-25-2009, 03:11 PM   #7
nesrail
Member
 
Registered: Jan 2009
Distribution: Differs
Posts: 121

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by matthewg42 View Post
Learning blender is non trivial. It's got a huge amount of functionality, and it will take a long time to become proficient with it. I believe it's worth the effort if you are interested in 3d gfx. Especially if you want to make a living as a 3d artist.
Thanks. I'll try.
 
Old 01-25-2009, 05:23 PM   #8
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by nesrail View Post
Hello
Is it possible to make a 3D animation with C++, only by code???
Like a Character for a game??
Learn OpenGL.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration