GLBasic forum

Main forum => GLBasic - en => Topic started by: Gerfy on 2009-Aug-22

Title: Switching from 2D to 3D
Post by: Gerfy on 2009-Aug-22
Hi,

I want to use a mixture of 3d and 2d... sorta make my character 3d - but in a 2d world. Looking at the command instructions I can flip between the 2 modes on the fly. At the mo I'm thinking about doing my blitting in 2d, switching to 3d - draw the characters, then flip back into 2d for the last few bits I need to blit. Of course it will be doing all this flipping backwards and forwards a hell of a lot. (for the main game loop)

Is it ok to do this? Does anyone know any reason why I shouldnt do it this way??

I Just dont want to spend hours building my engine only to find I'm causing problems as the commands were not intended to be used like this.
Title: Re: Switching from 2D to 3D
Post by: Gerfy on 2009-Aug-22
Thanks Ocrean :)
Title: Re: Switching from 2D to 3D
Post by: Hatonastick on 2009-Aug-23
Totally off-topic, but I love your avatar Gerfy. :)
Title: Re: Switching from 2D to 3D
Post by: Sokurah on 2009-Aug-23
Quote from: Hatonastick on 2009-Aug-23
Totally off-topic, but I love your avatar Gerfy. :)

It's because there's a hat, right? ;)
Title: Re: Switching from 2D to 3D
Post by: Schranz0r on 2009-Aug-23
hahahaha xD
Title: Re: Switching from 2D to 3D
Post by: Hatonastick on 2009-Aug-23
Quote from: Sokurah on 2009-Aug-23
Quote from: Hatonastick on 2009-Aug-23
Totally off-topic, but I love your avatar Gerfy. :)

It's because there's a hat, right? ;)
Ummm... Maybe..  :whistle:  I'd have to see a version without a hat to be totally sure.  =D
Title: Re: Switching from 2D to 3D
Post by: Ian Price on 2009-Aug-23
How can you not love Mr Ben anyway?
Title: Re: Switching from 2D to 3D
Post by: Gerfy on 2009-Aug-23
hahaha.. too right! Problem is I'm old enough to remember the original series FIRST time round!  ;)

Loved the diver/submarine episode, think that was when he was after the sea monster.
Title: Re: Switching from 2D to 3D
Post by: Ian Price on 2009-Aug-23
Quote from: Gerfy on 2009-Aug-23
...I'm old enough to remember the original series FIRST time round!  ;)

Me too! :D
Title: Re: Switching from 2D to 3D
Post by: Hatonastick on 2009-Aug-23
Hmm that one must have bypassed this side of the puddle.  Mind you back in the early 70's we only had a small black and white TV and access to only 2 channels where we lived (out in the sticks).  Looks pretty cool from what little I was able to find out about it.
Title: Re: Switching from 2D to 3D
Post by: Billamu on 2009-Aug-24
Throwing my two cents in regarding the 2d-3d issue. GLBasic is good at dealing with 2d/3d, but I think for the sake of performance do as much as you can in 3d, including the 2d stuff.
Title: Re: Switching from 2D to 3D
Post by: Billamu on 2009-Aug-25
That's very interesting Ocean! I'll have to keep that one in mind. I've been thinking about using either rendered 2d or 3d for my app.  =D
Title: Re: Switching from 2D to 3D
Post by: Kitty Hello on 2009-Aug-25
If you're doing it for PC, you might want to consider using X_SPRITE or a 3D object instead of 2D, because if makes the positioning a bit easier IMO.