Sign in to follow this  
Handsofmodder

c++ question

Recommended Posts

hi, I want to know what c++ commands aloow me to do the following 1. Load a 3d object from blender 2. Wrap a texture around a 3d object 3. Load levels I made from blender 4. Load animations made in blender 5. Play animation on an object thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by Handsofmodder
hi, I want to know what c++ commands aloow me to do the following
1. Load a 3d object from blender
2. Wrap a texture around a 3d object
3. Load levels I made from blender
4. Load animations made in blender
5. Play animation on an object
thanks
I'm sorry to tell you there are no such functions :)

C++ is a (relatively) low-level portable programming language; it doesn't know anything (to speak of) about graphics, sound, models, levels, animation, etc.

Each of the above you will either have to implement yourself or (more practically) pull together from different 3rd-party libraries or publically available references and/or source code. For certain kinds of games you can use 'game making' software, and for others you can mod or use an engine such as Torque. One way or another though, you'll probably end up having to do some programming.

Share this post


Link to post
Share on other sites
First off, you need to figure out what Graphics API you are going to use. SDL, OpenGL, DirectX..etc. Once you have that, search on the net for the exact things you asked for. There will be tutorials. The reason I can't tell you right now is because each of these "commands" you want are not really commands. In fact, they are a huge amount of code, that can be packed into a function. There is no one way to do it. You can download some code and just use it, but I recommend to learn the code, and learn how it works and then to attempt to make your own. Good luck. I use OpenGL, so if you want that, visit NeHe. I forgot the link, search it on Google.

Share this post


Link to post
Share on other sites
Man! Is there any programming languages out there that let you controll 3d objects that people in gaming industies use?

also I haerd about the fopen and fread command. How are those going to help?

Share this post


Link to post
Share on other sites
from your title I will assume you have some modding experience ...

what you are not realizing is the difference between a programming langauges, and a game-kit / framework / engine.

C++ is a core programming langauge that can be used at the lowest level (writing operating systems and device drivers) or the highest level (configuring adaptable AI behaviors, dynamically composing music, rendering realistic particle systems and physic simulations) ...

But the langauge doesn't PROVIDE any of those functions. Those features are written in a langauge and made available for use. For instance if you install Half-Life 2 and the HF2 SDK, you can load half-life 2 models and scripts and develop half-life 2 mods. Half-life 2 was likely written in C++, but the models, physics, AI, etc are part of Half-Life 2, NOT part of C++. If you buy the $100 Torque engine you can load certain formats of 3D models, and Torque scripts and AI behaviors, the core of which is written and editable in C++, but they are not part of C+, they are part of the Torque game engine. OGRE is a rendering engine, ODE is a physics simulation library / engine.

So a master C++ programmer would know how to read what is happening in an ogre function, but would not necessarily know how to use OGRE to make games.

Starting from nothing, games take multiple people years to make, and just the code for loading a model file would likely takes weeks the first time ... but noone starts from scratch these days, we reserch existing libraries on the internet and download / purchase them to use.

Better questions might be:

1. Which libraries or engines would allow me to load 3D objects from blender, including applying textures, loading levels and animations, and controlling those animations?
2. Where might I find good tutorials on how to use those libraries / engines?

Share this post


Link to post
Share on other sites
Quote:
Original post by Handsofmodder
Man! Is there any programming languages out there that let you controll 3d objects that people in gaming industies use?


C++. Everything you want to do is possible in C++, you will just need to use some 3rd party libraries and...gasp...do some programming. Other than that, python is a very beginner-friendly language (but I don't know what kind of native graphics support it has). Java and Java3D may also be worth looking into. But I think you may be looking more for tools such as Valve's Hammer Editor rather than a programming language.

Quote:

also I haerd about the fopen and fread command. How are those going to help?


fopen and fread are for file i/o, and are somewhat outdated since C++ introduced file streams. No offense, but if you're asking basic questions about file i/o functionality, you are not ready to be doing the things you're asking about; at least, not in C++.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
so where can I download the python script engine

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by Xai
from your title I will assume you have some modding experience ...

what you are not realizing is the difference between a programming langauges, and a game-kit / framework / engine.

C++ is a core programming langauge that can be used at the lowest level (writing operating systems and device drivers) or the highest level (configuring adaptable AI behaviors, dynamically composing music, rendering realistic particle systems and physic simulations) ...

But the langauge doesn't PROVIDE any of those functions. Those features are written in a langauge and made available for use. For instance if you install Half-Life 2 and the HF2 SDK, you can load half-life 2 models and scripts and develop half-life 2 mods. Half-life 2 was likely written in C++, but the models, physics, AI, etc are part of Half-Life 2, NOT part of C++. If you buy the $100 Torque engine you can load certain formats of 3D models, and Torque scripts and AI behaviors, the core of which is written and editable in C++, but they are not part of C+, they are part of the Torque game engine. OGRE is a rendering engine, ODE is a physics simulation library / engine.

So a master C++ programmer would know how to read what is happening in an ogre function, but would not necessarily know how to use OGRE to make games.

Starting from nothing, games take multiple people years to make, and just the code for loading a model file would likely takes weeks the first time ... but noone starts from scratch these days, we reserch existing libraries on the internet and download / purchase them to use.

Better questions might be:

1. Which libraries or engines would allow me to load 3D objects from blender, including applying textures, loading levels and animations, and controlling those animations?
2. Where might I find good tutorials on how to use those libraries / engines?


is there any libiaries let my load my blender objects

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Not to sound stupid (altough I do) but what is a blender? I assume it is some kind of 3d graphics drawing program (kinda like paint but not sucky). If I'm wrong you can laugh at me, if I'm right you can still laugh at me. Either way, I probably won't be using one until I learn C++ anyway (QBASIC just sucks, man).

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
cool. Makes no sense to me, but cool. Don't worry, I'll learn (it's why I'm here)

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
... I probably won't be using one until I learn C++ anyway (QBASIC just sucks, man).


Although I recommend that you DO learn C++ for serious programming, I feel compeled to defend my old pal QBASIC because thats how I cut my teeth as a programmer. Used correctly, QB is really quite powerful, moreso than its given credit for. I've created relatively simple 3D games, FF3 style RPGs and applications with complex UIs using some of the freely available libraries. I've implimented some of these games using techniques borrowed from Object Oriented Programming, and written a program with over 100K of source code.

Is QB antiquated? Sure, but there's still much that can be done with it and by no means does it suck. Some of us like the old classics, much like an old car, even though they're not always as practical as the shiney new ones. C++ is my daily driver, QB is like a 57 Caddy a father gives his son on his 16th birthday, it taught me how to drive and its nice to take a spin in it once in awhile :D


---

On topic, The discussion of BASIC brings up a good point. There's a product called DarkBasic which combines a BASIC dialect with the kinds of functionality you are after, though I don't know specifically if it supports blended (I'd imagine it does though) That might be worth checking out. Its not quite as robust as C++ but it provides the sort of community support that many beginners can thrive in.

Share this post


Link to post
Share on other sites
Quote:
Original post by Ravyne
On topic, The discussion of BASIC brings up a good point. There's a product called DarkBasic which combines a BASIC dialect with the kinds of functionality you are after, though I don't know specifically if it supports blended (I'd imagine it does though) That might be worth checking out. Its not quite as robust as C++ but it provides the sort of community support that many beginners can thrive in.


Good suggestion. If you want to stick to C++ though there is also plenty of C++ oriented game and render engines out there as well as plenty of free tools and various other libraries. Have a looksy here for some suggestions. Scan through their lists of features before you start getting involved with one to make sure it does everything you want. Also check to make sure they have an active forum with plenty of members so that you can ask for help and trade ideas. This will probably be the best way to get you started since you'll be able to acheive almost instant results this way so its less discouraging for the beginner and you also know that the people you're confering with at the forum are using the same codebase as you which will make it easier to ask for help. Once you start getting in to it you'll no doubt want to start creating your own engines and low level implementations like most of us around here ^^. Have fun

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I'm trying to make a QBASIC-like PUT function in C++. Here's some pseudo-code...

Put(x1, y1, array){
(For y = y1, y <

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Okay, I'm trying to make a QBASIC-like PUT function in C++. I tried to post some code but it got cut off and I don't feel like typing it all again. what I need to know is...
How can I find the size of an array? How can I tell if it has 5 members or 50?

Sorry for posting in this thread, but I don't have email so I can't register and start new threads.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Sorry for posting in this thread, but I don't have email so I can't register and start new threads.

Ninja a thread like this isn't too nice, and the solution to not do it is here.

Share this post


Link to post
Share on other sites
Quote:

Sorry for posting in this thread, but I don't have email so I can't register and start new threads.


Get a free mail account in Yahoo or something and register. You can't hijack people's threads like that.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I'm online at school, and only at school. I can't even get to a website for a free email account (I've tried). Anyway, i've just been banned from the computers for trying to learn C++. Now I can only use them during class, so I hope i don't get caught before I finish this post.

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