Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / More Camera Controls For DBC

Author
Message
Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Oct 2007 21:40
As those of you who know me know, I'm not exactly the best at 3D, but I have been reading about people having trouble moving the camera and it's stuff I could do. MOVE CAMERA UP etc
Are there going to be any additional camera commands in v1.2?
Like I said, I don't use 3D very often so would extra commands be useful?

I was thinking of making these functions:-
MOVE CAMERA UP/DOWN/LEFT/RIGHT(step)
PAN CAMERA(focus_point,rotation) - camera circles a central point by a given rotation.
ZOOM CAMERA(step)
SET CAMERA TO FISH EYE LENS - distorts camera view

I would like to be able to make as many cinematic camera functions as possible, hopefully it will make it easier to add a professional look to everyone's games
easier said than done
Any more suggestions are welcome

Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 12th Oct 2007 13:48
The move camera up/down/left/right ones are quite easily done using newx/y/z/value commands, something like

(Note: not guaranteed to work due to lack of caffeine content)


The pan camera command would be quite similar
(Same disclaimer as above)



Zoom camera involved moving the camera forward some and changing the FOV to be narrower, it takes some playing around with to get right, but I don't think it would work too well as an actual command.

As for the fish eye lens, that's a bit more complicated, and would most reliably be done through shaders, which DBC doesn't support. There's a few ways you could go about this in DBC, none of which particular fast or useful.

I know you weren't really asking for code here, but I reckon it's quite unlikely these things will be added, and not really necessary for most of them.

Libervurto
18
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 12th Oct 2007 14:46 Edited at: 12th Oct 2007 14:58
I've found that you can make a fisheye lens effect with the FOV
I think that being about to move the camera around would be useful and the circling one is too. I'll give them a go and post them up if they are useful.
cheers

[edit]

Made a few changes to your panning function to give it more functionality. It works a charm, except you typed "camera y positition"
thanks


Login to post a reply

Server time is: 2025-05-31 21:10:36
Your offset time is: 2025-05-31 21:10:36