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 - SnooPI

#406
Apparently there is some differences between v10 and v11.556 in 3D on Android:

In X, the camera seems to be inversed.
X_CULLMODE is inversed.

(thanks Gernot, despite still some problems, this is a very good version  :good:)
#407
Very nice and very professional  :good:
An android release soon?  ;)
#408
Very interesting but I'm not sure that the characters you create are really royalty free :|
#409
Good idea mentalthink :good:
#410
I do not reject this technique, I'm just saying it's not the same thing.  :whistle:
#411
Quote from: tatakamucher on 2013-Jul-31
hi, your code its ok for movement  :)

bur the challenge here is for a tweening animation, like a bone animation in flash.


for example i need to draw a sprite for x = 10 to x = 11 in a interval of 1000 millisecs (like x = 10.1, x = 10.2, x = 10.3... x = 11)

The system of my code is not only for the movement.  O_O
It is the same system that is used in quake1(mdl) and quake2(md2) to animate 3d models (keyframes animation with vertex morphing)

Quote from: spicypixel on 2013-Jul-31
The pixel is either at 10 or its at 11, it can never be at 10.1, 10.2, etc.... using # will mean its at 10 longer before it's at 11, this is the best you can get. Like I say the pixel will only ever be at 10 or 11  :giveup:

I confirm that spicypixel said.

Moreover, anti-aliasing is just a graphic effect.  :giveup:
#412
Quote from: tatakamucher on 2013-Jul-30
my first code uses # and dont work, int neither, i think about the ocean solution u_u

then this is not only a problem of data types (integer or float) but also a problem in your code.  ;)

Here a simple tweening movement  (for clarity, the code is not optimized )  :):
Code (glbasic) Select


GLOBAL npos = 4, n1 = 0, n2 = 0, dtime, x_rect, y_rect, speed_rect, dx_rect, dy_rect, speed, distx, disty, dist, pos[]

DIMDATA pos[],  10, 10,  200, 10,  250, 200,   10, 200   // X, Y Format

x_rect = pos[0]
y_rect = pos[1]
speed_rect = 2

WHILE TRUE
IF dist <= 0
n2 = n1 + 1
IF n2 >= npos THEN n2 = 0

distx = pos[n2 * 2 + 0] - pos[n1 * 2 + 0]      // X
disty = pos[n2 * 2 + 1] - pos[n1 * 2 + 1]      // Y
dist = SQR((distx * distx) +  (disty * disty)) // Distance
dx_rect = distx / dist
dy_rect = disty / dist

INC n1
IF n1 >= npos THEN n1 = 0
ELSE
DEC dist, speed_rect * speed
ENDIF

INC x_rect, dx_rect * speed_rect * speed
INC y_rect, dy_rect * speed_rect * speed

//DRAWRECT INTEGER(x_rect), INTEGER(y_rect), 50, 50, RGB(244,0,0)
DRAWRECT x_rect, y_rect, 50, 50, RGB(244,0,0)  // For a "clean code" use INTEGER function, but GLB also accepts floating value in 2D ;)

SHOWSCREEN

speed = 30.0 * GETTIMER() * 0.001
WEND
#413
I know the difficulty of 3D development. It is necessary that you stay motivated Hemlos.  :)

It seems that this is a good LIB. I tested a demo some time ago, it was very good (maybe a bit slow) you just need to optimize it.
Maybe using the INLINE function for mathematical calculations.

You have my encouragement Hemlos.  :good:
#414
Quote from: spicypixel on 2013-Jul-29
Change your variables from % to # for a start ;)

I agree.

For a "clean code" just uses the INTEGER function when you draw :

DRAWRECT INTEGER(-a3x), INTEGER(a3y), 50, 50, RGB(244,0,0)
#415
Off Topic / Re: metal slug
2013-Jul-30
Quote from: erico on 2013-Jul-29
Metal slug is one of the best ever animated games I have ever seen. Excellent music and game play too. I recommend metal slug 3 on neo geo.

I confirm.

:nw: NEOGEO
#416
GLBasic - es / Solidaridad
2013-Jul-25
Un Mensaje de solidaridad de Francia para el accidente de tren en España.  :|
#417
Viva España

Liberté, égalité... superioridad

Private joke France/Spain in sport... particularly in soccer :P

#418
I'll try to use several different sounds to simulate a sound panning (big work in perspective :S)

I'll post a link when it's finished (normally soon :))
I don't like showing a product that isn't finished.
In french we have an expresion for this : "être un perfectionniste" --> "be a perfectionist")
It's sometimes a quality but also a defect  :-[

Thank you for your reply mentalthink.   :booze:
#419
Same problem on glbasic v11.414  :(

It's a really annoying problem for my 3d game.   :'(
#420
Bug Reports / Sound Panning
2013-Jun-30
Apparently there is a problem with sound panning on android (tested on nexus and kindle fire with glbasic v10 (not tested with v11 beta))

pan = -1.0 or pan = 1.0 always returns a pan = 0
It's strange  O_O

However, the sound panning work perfectly on PC (of course, in waiting the possiblity of changing the sound panning and volume in real time  :P)

---> Sounds are in ogg format / 22050 hz