|
CameraGrabWorldAt | ||
CameraGrabWorldAt CameraIndex, WorldIndex, XBasePos, YBasePos, ZBasePos | ||
Parameters: CameraIndex = The camera index you wish to use screen the world data with WorldIndex = The world buffer index that you wish to grab from XBasePos = X base position to shift element too YBasePos = Y base position to shift element too ZBasePos = Z base position to shift element too |
||
Returns: NONE | ||
CameraGrabWorldAt transfers the previously captured gfx elements from a world buffer to the scene buffer. CameraGrabWorldAt can not only grab the elements that are in front of the selected chosen camera, but it can also relocate them. This allows you to grab section or sections from a previously created world buffer and then basically paste them ever you wish into the scene buffer. This could used to grab either entire scenes or segments to construct more complex or a bigger game worlds, more efficiently. You could even capture your GUI components to world buffers.. etc etc. Your only limited by your imagination. It's important to understand that when CameraGrabWorldAt grabs from the world buffer, it uses the selected cameras position and size as the location of where it's going to be grabbing from within that world buffer. This can be confusing if you if your using just a single camera. It's generally better to use a second camera purely for grabbing from worlds. This saves you having to constantly reposition a camera. FACTS: * CameraGrabWorldAt grabs frome from the selected cameras position/size within the selected world. Mini Tutorial: Part 1 of this example creates a world buffer, then fills this world buffer full of static dots (stars). Part 2, then creates second world buffer with a box shaded boxes in it. During the main loop, it grabs a camera full of this data from the world buffer and places it in the scenebuffer. Then calls the camera to render it. This allows us to mix data from different worlds, through different cameras, and maintain the scenes depth.
This example would output.
|
Related Info: | CameraGrabWorld : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |