Kuribo64
Views: 14,036,534 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-05-21 11:57 PM
Guest:

0 users reading Cameras [Tutorial] | 1 bot

Main - Archived forums - General SMG hacking - Cameras [Tutorial] New reply


shibboleet
Posted on 08-28-14 08:20 PM Link | #47403
Yep. Probably one of the most complicated things in this entire game.

Entry level- Advanced

Cameras are the most important aspect of a game. They make levels look a lot better, make it less glitchy, and just gives a cool effect for a game.

Now what you want to do, is take a decent look at the "camera" section in Anarchy In The Galaxy.
This is a table I used a while ago, but I've figured out more stuff in the process.

NameDescription
VersionVersion Type. Usually set to 30017
camtypeThe camera types. Usual is CAM_TYPE_XZ_PARA
idWhat identifies the camera.
gflag.truUnknown. Usually set to 0.
angleBX Rotation Angle Of The Camera (Radians)
angleAY Rotation Angle of the Camera (Radians)
woffset.XUnknown.
woffsetY.YUnknown. Usually 300.
woffsetZ.ZUnknown.
axisXUnknown
axisYUnknown
axixZUnknown
distDistance of the Camera from it's coordinate point.
vpanaxis.XPan Axis X (Maybe the keypad?)
vpanaxis.YPan Axis Y (Maybe the keypad?)
vpanaxis.ZPan Axis Z (Maybe the keypad?)
vpanusePan Use (Maybe the keypad?)
udownUnknown. Usual Entry is 78.
pushdelaylowPush Delay Low. Usual Entry is 78.
pushdelayPush Delay. Usual Entry is 78.
lplayUnknown. Usual Entry is 800.
uplayUnknown. Usual Entry is 300.
gndintUnknown. Entry is A0.

Now go under CameraCubeInfo in "Placement."

Create a new object, and replace 'name' with "CameraArea".
Set the obj_arg0 to 5, you'll see why later. Go ahead and set the position, and scale. And set the AreaShapeNo to 0.

Now, go under the 'camera' section again.
Go ahead and add a new camera, and put this information in there:

version: 30017
gflag.thru: 0
num2: 0
num1: 1
angleB: 0.576436
angleA: 0.727107
dist: 1800
vpanaxis.X: 0
vpanaxis.Y: 1
vpanaxis.Z: 0
vpanuse: 1
udown: 78
pushdelaylow: 78
lplay: 800
uplay: 300
gndint: A0
lower: 0.1
upper: 0.3
camint: 78
fovy: 45
roll: 0
loffsetv: 0
loffset: 0
woffset.X: 0
woffset.Y: 300
woffset.Z: 0
camtype: CAM_TYPE_XZ_PARA
id: c:0005 (remember the 5 we set for the CameraArea? This is what it is used for.)
evpriority: 0
evfrm: 0
camendint: 0

More values not listed? Just set them at 0.
Save the file, and load it in-game. Watch what happens when you walk into it. The camera shifts!

You're probably wondering...what sets the angle? Simple. angleA (Y axis) and angleB (X axis) are the angles.
Crazy? Yeah. It uses a unit not many use, called radians. It's something like, 180 degrees = pi.

Go ahead and use this converter to convert your angles:
http://www.beg.utexas.edu/GIS/tools/deg_rad.htm

Save, and test them out. Keep on changing the values until you are happy with your camera. Take notice about placing the CameraArea, though. Anything underneath the object placement will be ignored.


I hope this helps. Any questions, ask below!
~MrRean

____________________
a

Jesse
Posted on 08-29-14 04:49 AM Link | #47411
I have a few questions for you below:

- Is this all done with whitehole or do I need anarchy in the galaxy for this?
- can I create a camera for round planets with this?(I tried to search for such cameras in other levels but I couldn't find any information)
- does this also apply to the camera for a launchstar or is that a different kind of camera?

NWPlayer123
Posted on 08-29-14 10:03 AM Link | #47437
Posted by jjesss064
I have a few questions for you below:

- Is this all done with whitehole or do I need anarchy in the galaxy for this?
- can I create a camera for round planets with this?(I tried to search for such cameras in other levels but I couldn't find any information)
- does this also apply to the camera for a launchstar or is that a different kind of camera?

Yes, Anarchy is needed unless you want to manually modify a table with all the data with Whitehole's BCSV editor (which would be a pain)
Can't answer the second one, try again later
AFAIK all cameras (except for like the intro ones) are these, including ones for launch stars.

____________________
"I hate playing musical chats" ~ Quote of the month

Jesse
Posted on 08-29-14 04:25 PM Link | #47470
Posted by NWPlayer123
AFAIK all cameras (except for like the intro ones) are these, including ones for launch stars.

yes oke, I have done research on this but I don't get a camera interacting with the launch stars. so the launch stars have free cameras.

PaperplateismGuy
Posted on 08-29-14 04:47 PM Link | #47471
From what I could see on other galaxies with round plants, had the Y axis with a 1 integer, and flat planets had a 0 for a y axis integer.

____________________
Remember, every user has to start out somewhere,- Every time I look back at my old posts, I cringe.



Jesse
Posted on 08-30-14 07:43 AM Link | #47542
So I tried to make a camera and let it shift. however it doesn't work and I can't really check if the position is wrong because the level doesn't open anymore in whitewhole 1.2, whitehole 1.3 gives a crash. so here a few pictures and the whitehole crash txt.

the crash:

[image]

the crash text:

Whitehole v1.3 crash report
Please report this at Kuribo64 (http://kuribo64.net/) with all the details below
--------------------------------------------------------------------------------

java.lang.ArrayIndexOutOfBoundsException: 59584
at whitehole.fileio.Yaz0.decompress(Yaz0.java:196)
at whitehole.fileio.Yaz0File.(Yaz0File.java:29)
at whitehole.fileio.RarcFilesystem.(RarcFilesystem.java:29)
at whitehole.smg.ZoneArchive.loadZone(ZoneArchive.java:138)
at whitehole.smg.ZoneArchive.(ZoneArchive.java:55)
at whitehole.smg.GalaxyArchive.openZone(GalaxyArchive.java:59)
at whitehole.GalaxyEditorForm.loadZone(GalaxyEditorForm.java:299)
at whitehole.GalaxyEditorForm.(GalaxyEditorForm.java:76)
at whitehole.MainFrame.openGalaxy(MainFrame.java:272)
at whitehole.MainFrame.GalaxyListMouseClicked(MainFrame.java:280)
at whitehole.MainFrame.access$600(MainFrame.java:29)
at whitehole.MainFrame$7.mouseClicked(MainFrame.java:135)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

the camera box object in anarchy in the galaxy:

[image]

the camera in the camera settings:

[image]

if you need more information about this crash or the things I did please say.

shibboleet
Posted on 08-30-14 09:44 AM Link | #47554
*sigh*
You need to drag the ____Map.arc into yaz0dec, and remove the .rarc. Anarchy saves in yaz0 but whitehole reads rarc.

____________________
a

colinzinho
(post deleted) #47604

Mixlas
(post deleted) #47755


Main - Archived forums - General SMG hacking - Cameras [Tutorial] New reply

Page rendered in 0.025 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 214/214, time: 0.020 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.