Submit
In response to DirectSound issues
994af94f871438b5fe2c0d002b3c659d
0
ray_f 101 Jul 10, 2003 at 04:05

DS will return 0x80070057 when attempting to create an DS buffer in unsupported format…

However, it is wired to see that error in DXDIAG which should be using some low-res anyway…

In the mean time, look for the latest drivers, and install DX9a if possible…

In response to DirectMusic
994af94f871438b5fe2c0d002b3c659d
0
ray_f 101 Jul 10, 2003 at 04:01

Check out the samples in DirectX SDK, there are load of sample code running DirectMusic. :)

E05263ec846eb85da803f56e2917962d
0
Noor 101 Jul 09, 2003 at 18:37

Moomin, just in the future reference, you can submit such news in the submission link found in the main page. By doing that, more people can see it.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Jul 09, 2003 at 16:58

Very interesting. Thanks moomin for letting us know.
Getting a log would be fantastic.

I’ll try to be there.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jul 09, 2003 at 14:21

cool, i’ll try to be there…
if i’m not there i’ll idle in the channel and safe a log for devmaster

0684f9d33f52fa189aad7ac9e8c87510
0
baldurk 101 Jul 05, 2003 at 07:37

There is no way to draw anything in OpenGL, without OpenGL commands. The easy way is to use the data from the model file, and pass it to OpenGL via appropriate commands. The hard way, and never used way, is to manually do it.

3a28227e8f3c9837610adb0c0a76e654
0
like_gobeawan 101 Jul 05, 2003 at 06:34

hi all,

thanks a lot for the reply. in the end, i decided to use 3dmax to model the objects i want, then use a opengl loader for 3dmax format file. (give up… nobody recommend me to use opengl itself =p )

initially, i thought that by using opengl itself to model the object, i don’t have to convert the 3dmax / maya codes into opengl to be manipulated. the project i want to do is to make real time user interaction on the model.

so by using opengl to model the object itself, it enables me to store the object data in my data structure, and render it faster in C++/C# implementation.
right now, i’m still not clear about the project design and feasibility by converting 3dmax model into opengl. anyone would like to comment or suggest something ?

:blink: :rolleyes: :)

In response to Texture Loading
C7787dfbc6b0c78ef4a2a8e7cfe1366c
0
keless 101 Jul 05, 2003 at 06:13

First of all, you should concider what resource types some of your models will require. If you’re supporting .3ds or Md3 you’re almost bound to .BMP or .TGA

C7787dfbc6b0c78ef4a2a8e7cfe1366c
0
keless 101 Jul 05, 2003 at 06:06

The reason you dont want to handcode the object is because anything larger than a cube requires a great number of lines of code. And they all look like this:
glBegin(GL_TRIANGLE_STRIP);
glVertex3f(1.0f, 1.0f, 1.0f);
glVertex3f(3.0f, 246.0f, 234.0f);
glVertex3f(246.0f, 234.0f, 2465.0f);
glVertex3f(45.0f, 543.0f, 65.0f);
glVertex3f(1.0f, 54.0f, 634.0f);
glVertex3f(234.0f, 524.0f, 1.0f);
glVertex3f(2654.0f, 234.0f, 1.0f);
glVertex3f(1.0f, 352.0f, 1.0f);
glEnd();

Or something to that degree, but with less spastic numbers. Now imagine trying to come up with the verticies for a 1000 poly model. (thats 1000 triangles, so if you were to do it with GL_TRIANGLES, 3000 glVertex3f() calls) What a nightmare, huh? So you need to let the artist make the object, and instead write a class that will load in that object and draw it efficiently. This is much easier to do.

I dont know why you dont want to use models made by professional modeling programs, but perhaps its because you want to make them yourself and you dont have the money for 3DS Max? First of all, there are many models people have made which they have given for free use on the Internet. Apart from that, there are also openSource modelers that you can use for free.

Hope this helps.

27340afba8e6bbd010c1e520a843e50f
0
moomin 101 Jul 04, 2003 at 08:00

Arse there’s like these big saucer shaped ships just hovering over my workplace.

Mkay

PS can I get a custom title since I er, sort of contribute, and I will seriously try to provide an article by this weekend, I’m currently rebuilding all of my default OGL files (keyboard, mousr, init, etc bla blah mr Absinth|)

27340afba8e6bbd010c1e520a843e50f
0
moomin 101 Jul 04, 2003 at 07:58

Well basically a seperate place, just to spice things up. Think of it as sort of having your own hosted website on devmaster. Oviously it would be massively restricted as to what you can post/upload. But at least it gives something different to the websites out there. I won’t be nasty, but rather straight to the point. Devmaster is fighting in rather a niche area especially ssince www.gametutorials.com is around, devmaster must provide some originality and, my idea is a way too sort of give that. I do whole hearlty agree with the issue of spamming, maybe the person has to reach a certain number of posts AND have contributed a certain number of articles.

PS I work as a programmer for a large utility company in the UK and the emailer disclaimer is HUUUUUUUUUUUUUUUUUGGGGGGGGGGGGGE

PSS I was introduced to Mr Absinth last night, aaaarg

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Jul 04, 2003 at 03:05

Do you mean something similar to Code Snippets? That’s a good idea…but why not use the forums for feedback and suggestions? That is, you can post it here, and then when it’s ready, it can be moved to the main page as a formal article.
Or do you mean, you’d like a seperate place to do all that?

0684f9d33f52fa189aad7ac9e8c87510
0
baldurk 101 Jul 03, 2003 at 17:10

the only problem is when to judge someone worthy of a blog. It can’t be post count only. The decision of apex perhaps?

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jul 01, 2003 at 17:02

it’s actually quite simple. check out video for windows. it lets you stream in avi video files into your app easily. if you are not under windows i’d check out ogg.
vfw delivers you video frames as DIBs which you can simply load into opengl textures.

In response to Texture Loading
27340afba8e6bbd010c1e520a843e50f
0
moomin 101 Jul 01, 2003 at 12:39

Hmmmmm, I suppose this isn’t really an opengl issue, and is really a personal decision. BMP’s are fine(ish) just their lack of alpha (although you can “fix” this, and the comperatively large filesize). For testing/learning BMPs are fine

In response to Texture Loading
6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jul 01, 2003 at 11:26

png has a lot of internal formats, lossy and lossless ones..

the “perfect” format is dds, direct draw surface. why? because it is optinonally lossless or lossy, with mipmaps or not, and can get directly load into system, as it uses the same compression algo as gpu’s have to decode.

i for myself just use bmp or so.. dunno..

the “best” thing i’ve seen is from maven.de (hope link is right), wavelet compression much like in jpg2000…

but for textures? dunno.. i haven’t mastered his sourcecode yet to load my own files:(

In response to Language for new Game
6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jul 01, 2003 at 04:16

oh, just for all your note. D can interface directly with C/C++.. well actually only with c, but as c++ does that most the time anways, too, as well with c++:D

thats great… i’m merely interested if i can setup one time the compiler to compile stuff for me at runtime, adding D as a scripting/plugin-language, as it is much more save..

In response to opengl lights
6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jul 01, 2003 at 04:14

great!!

and to add to the screenshots: they are not only nice, but they where useful to detect the problem as well (if that really was the problem, of course:D)

In response to opengl lights
E05263ec846eb85da803f56e2917962d
0
Noor 101 Jun 30, 2003 at 22:21

Good. Congratulation!

[EDIT]
yes, very nice screenshots!
[/EDIT]

In response to Language for new Game
F699ebb187331fdf7f7875320e3e7e3e
0
starboarder2001 101 Jun 30, 2003 at 22:07

i vote c++… B)

In response to opengl lights
F699ebb187331fdf7f7875320e3e7e3e
0
starboarder2001 101 Jun 30, 2003 at 21:50

ok thanks i got it working :D

In response to opengl lights
Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Jun 30, 2003 at 21:42

Nice screenshots you have, btw :)

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jun 30, 2003 at 21:37

i don’t suggest it as well (read it over on nutty.org, too:D)

use a modeler..

In response to opengl lights
6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Jun 30, 2003 at 21:32

use glLightfv(GL_LIGHT0,GL_POSITION,lightposition) as if you would draw a point.. means you possibly draw it at the moment it would just sit in front of your cam, without translation and rotation yet..

place the function where you draw the landscape..

In response to opengl lights
F699ebb187331fdf7f7875320e3e7e3e
0
starboarder2001 101 Jun 30, 2003 at 21:15

this is what i am doing now:

//example1
float ambientlight[4]; //ambient light
float diffuselight[4]; //diffuse light
float specularlight[4]; //specular light
float lightposition[4]; //light position

//i would setup the 4 variables above here//

glLightfv(GL_LIGHT0,GL_AMBIENT,ambientlight);
glLightfv(GL_LIGHT0,GL_DIFFUSE,diffuselight);
glLightfv(GL_LIGHT0,GL_SPECULAR,specularlight);
glLightfv(GL_LIGHT0,GL_POSITION,lightposition);

glLightf(GL_LIGHT0,GL_CONSTANT_ATTENUATION,0.9);
glLightf(GL_LIGHT0,GL_LINEAR_ATTENUATION,0.1);
glLightf(GL_LIGHT0,GL_QUADRATIC_ATTENUATION,0.1f);

glEnable(GL_LIGHT0);

this is what i tryed:

//example2
float ambientlight[4]; //ambient light
float diffuselight[4]; //diffuse light
float specularlight[4]; //specular light

//i would setup the 4 variables above here//

glPushMatrix();

glTranslatef(0,0,10);
glLightfv(GL_LIGHT0,GL_AMBIENT,ambientlight);
glLightfv(GL_LIGHT0,GL_DIFFUSE,diffuselight);
glLightfv(GL_LIGHT0,GL_SPECULAR,specularlight);
glLightf(GL_LIGHT0,GL_CONSTANT_ATTENUATION,0.9);
glLightf(GL_LIGHT0,GL_LINEAR_ATTENUATION,0.1);
glLightf(GL_LIGHT0,GL_QUADRATIC_ATTENUATION,0.1f);
glEnable(GL_LIGHT0);

glPopMatrix();

Example 2 didnt work.. :sigh: can you give me a small example of how to setup a light using glTranslate(..);? are you shure that is how you can set the lights position?

Welcome to DevMaster, a community-driven game development website of posts and resources!

Recent Tags

indie × 4
game-development × 4
ios × 3
android × 2
mobile × 1
native × 1
macos × 1
physics-engines × 1
windows-phone × 1
sound × 1
music × 1
networking × 1
testing × 1
multiplayer × 1
game-programming × 1
design-patterns × 1
3d-engine × 1
shaders × 1
gaming × 1
cross-platform × 1
royalty × 1
game-design × 1
game-industry × 1
graphics × 1
mmo × 1