Help with your scripting

Cameras ?

Cameras ?

Postby SpiderMack » 06 Dec 2016, 13:34

There is Orbit or Fixed, or Safe Area ? confusing :(
There is no very simple in editor 3D view menu, a camera i drop in scene, when run the game , it is main camera view ?
No gameplay videos to add TPF, FPS cameras ?
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Cameras ?

Postby SpiderMack » 06 Dec 2016, 14:00

I tried Tech demos cameras, but there is many stuff and relations with multiple scripts and models characters.
Must have FPS and TPS scripts only in the scene, a very basic demo usage and we can customize it and add what we want.
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Cameras ?

Postby epsilonion » 06 Dec 2016, 15:19

Have you set the camera to active? in the properties...

If you create a spline path you can attach the camera to it, this is used for creating cut scenes etc etc.
User avatar
epsilonion
Skyline Lead Moderator
Skyline Lead Moderator
 
Posts: 874
Joined: 26 Feb 2015, 11:51
Location: Hull, East Yorkshire, England
Skill: Business Manager
Skill: Great creative

Re: Cameras ?

Postby SpiderMack » 06 Dec 2016, 16:02

I have this code , but it does not work well.

1) Why camera is already attached to on model entity ? (if i don't use attachToEntity)
2) Code below not work, the camera don't want to go at player position
--x,y,z = entity.getWorldPosition(activePlayer);
--camera.setPosition(x,y+1,z);
3) position camera behind player, but call "camera.lookAtEntity(activePlayer);" does not work , camera look backwards , not rotated to look at back of player.


Full code i made :

Code: Select all
function onInit(objID)
   obj = objID;   
   activePlayer = entity.getIDFromTag("simbad");   
   --camera.attachToEntity(activePlayer);   
end

function onUpdate( td )
   if(activePlayer<1) then return; end
   --camera.setOrientation(1,0,0,0);
   camera.setPosition(0,1,3);
   --x,y,z = entity.getWorldPosition(activePlayer);
   --camera.setPosition(x,y+1,z);
   camera.lookAtEntity(activePlayer);
end
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Cameras ?

Postby SolarPortal » 06 Dec 2016, 16:50

On the right click menu in the scene, there is a camera category, choose the 2D fixed camera as thats the best base to build on.

After, make sure you activate the camera but leave the reference camera unchecked as that is for specific modes. After that, you can choose from the simple modes, Fly, fixed etc... But if you want a custom camera that will follow an entity, then change the drop down to custom which will pop another drop down in the properties. In this list look for Adventure or Chase etc...

Then on the extra properties that appear, click the set defaults button before editing positions to avoid any strange artefacts :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Cameras ?

Postby SpiderMack » 06 Dec 2016, 17:49

Fixed 2 means for 2D games, why choosing that name ? :x
It's very confusing camera systems in Skyline.
Tried some Lua code with SetPosition on Camera 2D, make engine crash :x
When lanching game, Camera editor resets and go far away in edit mode, what is going on ?

Skyline engine looks like it has been dev , but never tested by devs ?

It is camera follow player code on 10 lines somewhere ? Where is video tutorials ?
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Cameras ?

Postby SolarPortal » 06 Dec 2016, 18:14

Skyline engine looks like it has been dev , but never tested by devs ?

How can you make that assumption when all the imagery seen has been made mainly by us.. plus last time i checked, in order to test whether features work for end users... we have to use skyline to test and that means most aspects of the feature we are working on... :(

Please, try not to insult us or belittle us. You will get a far better experience from us and the community if you are polite and professional when speaking. Courtesy is not hard!

We would like to help, but we do also like to be treat with respect! :)

Fixed > means camera doesnt move... ?? ie. it is a fixed camera position.

When lanching game, Camera editor resets and go far away in edit mode, what is going on ?

This shouldn't happen and will have to check it out and get back to you.
Do you have an example or reproducible pattern we can follow :)

Most users when reporting do write a procedure to crash list like you have in other topics. Or recording videos is also used to show us which gives the most accurate results.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Cameras ?

Postby SpiderMack » 06 Dec 2016, 18:19

Please, try not to insult us or belittle us. You will get a far better experience from us and the community if you are polite and professional when speaking. Courtesy is not hard!

It is not insult it is so much crashes and bugs , never had so much so quickly with baught software , engine looks like hobby dev, far far away from Pro.
Hope engine will get lot more stable next year, and more pro (no CTRL + S to save Lua , kidding ? )

We can't report thousand engine bugs, too buggy and we are not paid as beta testers.
We are only beta testers of beta engine.

I post issue , from confusing system to crash or bugs, take it or leave it.

Cameras is super confusing :
- Camera 2D for 3D game ? Come on ...
- Editor should not play until user add a camera object
- Very confusing launching game without put camera on scene , it can play and move rotate with keys. Any 3D Software like Blender or 3D engine needs user to add camera to scene to play scene.
You need to get rid off default camera in Play mode and make it correctly.
- Camera 2D crash when tryng to position it ?

Why not make all simple ?
Make several cameras types to choose on from menu instead of one camera with many confusing options and checkboxx ?
Bad editor design.
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: Cameras ?

Postby SolarPortal » 06 Dec 2016, 18:35

well, that's your personal opinion on the editor and camera system.

Skyline is not the other software and does not have to conform to the designs of other software. When designing something fresh, you have to break outside the box and that may seem strange in the end, but its what creates a unique and artistic creation. This is how we are designing skyline.

We don't see why you should have to create a camera to play game with. If its not needed then.. its not needed and the editor camera works fine. However, the lua functions did work with both the main camera and custom camera.
If i have to add a camera into every scene, thats one more workflow step that is not needed. When it is required, the camera you want can be added and the custom camera system will take over and be used instead. Best of both worlds rather than a narrow minded approach.

Make several cameras types to choose on from menu instead of one camera with many confusing options and checkboxx ?

It is already intended for the right click to house many pre-setup camera types, but removing checkboxs and options is going to only limit what a camera system can do. The idea of skyline is supposed to be genre agnostic and open ended to scale to any users level.

- Camera 2D crash when tryng to position it ?

Will test this :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Cameras ?

Postby SpiderMack » 06 Dec 2016, 18:55

We don't see why you should have to create a camera to play game with. If its not needed then.. its not needed and the editor
Why not, but what is camera ? editor default one or one we drop on scene ? it can be confusing.

camera works fine. However, the lua functions did work with both the main camera and custom camera.
Show me small code working , better show a complete video tutorial from scratch.

You can have camera included in character prefab, so you don't mind every scene camera. Be able to add cameras to scene is good for cinematics or static cameras with camera changing when players enter a zone, you quickly make your static cameras scene and can select any camera and change properties in the scene, that's good for adventure games or mouse click games.

Lacks mini tutorials about gameplay, otherwise users are confused with cameras, controllers , characters and many things.
Drag and drop gameplay is good for beginners, but Lua code snippets is better for custom gameplay.
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 0 guests