Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bjimenez

#1
Hello,

I'm a new member here, but I really like using GLBASIC I am currently programming a new game that I will release on Ipod, Android & WebOS. I wanted to post a link to it here. I'm trying to raise money using Kickstarter.com so that I can have some professional graphics and music made for it. Please take some time to check it out, thanks.
=D
Ben

http://kck.st/Ik5Vrl
#2
how about

Dynowars

or

When Dinosaurs Attack!

or

Preasaurus (not sure on the spelling on this one)
#3
Quote from: mentalthink on 2012-Jan-15
Hi bJimenez for make this you have 2 commands...

World2screen
and screen2world

The first from 3D to 2D and the other the inverse...

Another way for know the measures of the screen in 3D, it´s very easy:

In 2D create a line in the middle of the screen from top to down... and plave the 3D object just in th 0.0.0  3D world coorinates....

Put a counter... for right and Left, and a simple print, whit this values... it´s the same in right and left , but whit the - signus... I remenber
whit this values 1,1000,45 the values are 5 and -5, sorry perhaps this values are wrong...

Thank you, after some thought, I think I'll just stick to 2D graphcs for now.
#4
Thanks I know those commands, but how do I convert the mouse x and y position to the 3D x y position?
#5
Hi,

Ok, it seems moving 3D graphics is very different the a 2D graphic, so what I'm wondering is there some way of easily doing this? Say I want to have a 3D graphic follow the mouse movement on a touch screen. How would I go about doing this?
#6
Quote from: mentalthink on 2012-Jan-12
Hi bJimenez, I found the error, I can see the 3D object... but it´s very tedious goes to put the camera on the 3d object it´s placed...

I comment, becuase I found an error un your 3D mesh, well the trouble it this, if you make this you can´t have any trouble in any 3D suite...

Make this, in the 3D modeler, I think you use the recomended for Glbasic (sorry alwys forget his name), put always the objetc in the 3D world coordinates in 0,0,0, this it´s X=0.0 and so on...

Another very important point for this... the 3D objects, all you will make, have a pivot point, this it´s the point, when you move or rotate or scale, appears normally a 3 axis, for every direction in the 3D word... this it´s the real important!!!, you have to make something like this:

In your software I don´t know the procedure:
Select your mesh... and put into the pivot point...
Search some coomand or button, that place it the pivot point in the middle of the 3D mesh
Go out of the mode pivot point... and put the object in 0.0.0

Now export, and how I told you, ve carefully whit the units of your 3d suites...

Now in Glbasic make your code, like you show us...
but those 2 lines put this...

X_make3d 1,10000,45
X_Camera 0,0,-300,0,0,0

Whit this you always have centered the object in the 0,0,0 in the world of glbasic, and it´s very very easy found where is the mesh...

If you can see very little or perhaps too much bigger, you can modify the Z value of the camera (-300), of modifiy de FOV(Field of View 45 (this it´s the cone of the camera))...

A little trick, never uses a front clip <1 this it´s the first parameter of X_make3d, you can have very strange troubles, and the far Clip, the second value, try to use to adjust to your scene... to much bigger will draw more objects, and your game will runs more slowly...

In some cases, if you put
X_camera 0,600,0,0,0,0 , perhaps you don´t see nothing and all it´s ok, if you put this:
X_camera 0.01,600,0,0,0,0  you have got hte mesh drawing in the viewport... if you look this it´s when you put the camera in the Y axis... I don´t stay sure if in newer version this not occurs, but for me in 2 version past don´t works fine...

Well... how I told you, your code works, but have a little trouble the mesh... If you want Use a more "sofisticated" 3D soft, you can use 3d MAx, have a direct exporter to .ddd and you don´t have to use the Glbasic converter, it´s direct form 3D max to Glbasic, and works whit animated meshes, like humans and a lot of things , like particles and cloth...

PS: If you don´t understand somthing... I think for your 2on name perhaps speak spanish, please comment me, I will glad to help you...

Thank you for your thoughts,  I understand most of your words. I'm still new and must learn more on how to create 3D correctly for GLBASIC. I will see about getting 3D Max and making 3D objects. Thanks.

Ben
#7
Quote from: Kitty Hello on 2012-Jan-12
Is it in the Media subdirectory? Only this is packed into the Apps.

Yes, it is in the Media directory. I finally got it to load, but it is very very small, not sure how to increase it's size so I can see it as big as a silver dollar. My problem is that I need to learn to use the 3D graphic program correctly. I'll keep working on it until I get it right.
#8
I just watched the 3D tutorial and I did not create a UV map, and I did not turn my image to the correct direction. I'll try again.
#9
Hi,

Ok thanks for replying. Here is the 3ds file I am using. I zipped it up with the graphics.

http://www.megaupload.com/?d=X11SWLDY

Maybe I'm not using the 3D tool in GLBASIC correctly?

I am using this example code from a GLBASIC sample to load my 3D penny.

Code (glbasic) Select
SETCURRENTDIR("Media") // go to media files

X_LOADOBJ "penny.ddd", 5

WHILE TRUE
MOUSESTATE mx, my, b1 ,b2
phi=mx*360 / 640
X_MAKE3D 1,1000,20 // Viewport 3D
X_CAMERA 0, 150, -300,      0 ,0 ,0
X_AMBIENT_LT 0, RGB(255,255,0)

X_MOVEMENT mx-230, 0, 0
X_SCALING 3, 3, 3
X_ROTATION phi*3, 0, 1, 0
X_DRAWOBJ 5, 0

SHOWSCREEN
WEND
#10
Hi,

I created my first 3d graphic. I followed the directions on texture size as best as I understood them. When I load the object it does not show on the screen. I'll post it here so that maybe someone can try it out and tell me what my issue is. I created this object using AC3D, then exporting to 3ds and converting to ddd. I have put the texture files into my media directory with the ddd file.

http://www.megaupload.com/?d=26UVN7SM
#11
yes signed up as a developer some time ago,but never able to get my hands on a mac for development. Its a very simple game actually I have two games. I,m also not sure how strict apple is with game submitions. I,ll post a screen shot in an hour or so. I woke up sick today, I can't even concentrate on the football gamez today.

snap shots, nothing great, and not final graphics, I just use basic programs while i code it then I'll create/get some good quality graphics. Only 2D games, but I want to convert to 3D later.






#12
Hi,

I need some help getting my game on the Iphone. I don't own a Mac computer so I can't compile it or put it on the Iphone app catalog. Is someone willing to partner with me to put the app on the Iphone? Please send me a message if you are interested.
#13
no need to drop it, just add option to compile for pre/pre2 only
#14
Happy New Year to you and everyone else, I sure hope I have a good 2012, because 2011 pretty much sucked!
#15
hi,

I'm learning this language too and yes some things I think are assumed to be known or assumed easy to figure out, but for beginners it can be a headache .