Questions tagged [scene]
'scene' can refer to various things. Please combine this tag with other tags to put your question into perspective.
scene
998
questions
48
votes
4
answers
21k
views
Understanding scenes in Unity3d
I have some confusion with scenes in Unity3d and I was not able to find any resources about them.
When should scenes be used? For example in a platformer would every level have to be a different ...
43
votes
9
answers
107k
views
Loading new fxml in the same scene
I have 2 fxml files:
Layout (header, menubars and content)
Anchorpane (it's supposed to be placed inside the content from the other fxml file)
I would like to know how can I load the second file ...
43
votes
2
answers
46k
views
3D Scene Renderer for Python [closed]
I'm looking for an easy to use 3D scene renderer for Python. All I'm looking for is to be able to:
Load a 3D scene model
Render it using an orthographic camera
Export the image so I can perform ...
41
votes
0
answers
1k
views
How to Update Frames for all Size Classes in a Storyboard in Xcode 6.1?
When working with Storyboard files in Interface Builder on Xcode 6.1, Apple recommends designing for the Any/Any size class. When finished, different size classes sometimes report warnings:
Misplaced ...
35
votes
8
answers
123k
views
How to switch scenes in JavaFX
I have looked on many pages to try and find out how to switch scenes but I have been unsuccessful.
I have a calculator and my goal is to select a menu option to change Calculators(ie: basic and ...
28
votes
13
answers
15k
views
Allow user to resize an undecorated Stage
I am working on making a screen recorder in JavaFX and one utility that is mandatory in the screen recorder is to let the user define how much area to record.
I managed to make an undecorated , ...
27
votes
1
answer
11k
views
Difference between a Scene and a View in iOS
I'm new to iOS I'm having trouble understanding the difference between scene and a view. Unfortunately Apple's documentation isn't helping me. I read that a scene is what you see on the screen. But ...
25
votes
4
answers
30k
views
Cocos2d adding a background image to a layer?
I just finished reading some of the cocos2d documentation, and as far as I understand to add a background image to a layer you have to do something like:
Sprite * bg = [Sprite spriteWithFile:@"...
24
votes
2
answers
69k
views
How to populate a TableView that is defined in an fxml file that is designed in JavaFx Scene Builder
I would like to know how do I populate a TableView with data... All the examples I have seen creates a TableView with columns and everything and add it to the scene. All done in the java code itself.
...
22
votes
3
answers
47k
views
Load scene with param variable Unity
In my game there is a map view that contains a 50x50 grid of tiles. When you click on the tile you get sent to that tiles view and attack things, etc. The only difference between these "tiles" as far ...
21
votes
5
answers
20k
views
Unity3d - Load a specific scene on play mode
Ok, so I'm working on a small project that has a main menu and 10 levels. From time to time I edit different levels, and want to try them out, however I get a NullPointerException as my levels rely on ...
19
votes
3
answers
111k
views
Set Height and Width of Stage and Scene in javafx
I develop one javafx application.
In my application there are two scenes and one stage.
In application the height and width for both scenes are same or constant.
so as per my research the height and ...
17
votes
1
answer
8k
views
How to implement pixel-wise classification for scene labeling in TensorFlow?
I am working on a deep learning model using Google's TensorFlow. The model should be used to segment and label scenes.
I am using the SiftFlow dataset which has 33 semantic
classes and images with ...
16
votes
4
answers
7k
views
SwiftUI 2: the way to open view in new window
Lets imagine that I have an App
var storeVM = BookStoreViewModel(bla1: bla1, bla2: bla2, bla3: bla3)
@SceneBuilder var body: some Scene {
WindowGroup {
BookStoreView( model: storeVM )
...
16
votes
1
answer
6k
views
Understanding Scene/WindowGroup in SwiftUI 2?
There is several objects in SwiftUI 2 like Scene and WindowGroup as some sort of Scene.
After reading documentation and looking WWDC2020 video related to scenes I see hierarchy by the following way :
...
14
votes
4
answers
68k
views
JavaFX how to change stage
I'm using Netbeans 7.2 with Scene Builder 1.0 to develop a JavaFX application. I have my main screen set up, and I want to have it so I click a button and it'll close the main window and open another. ...
12
votes
3
answers
33k
views
how to make transparent scene and stage in javafx?
I want to have transparent progressindicator, which is indefinite.
here is the code, it shows grey background state/scene.
i wanted fully transparent.
I tried following code, but it shows background ...
12
votes
2
answers
19k
views
JavaFX: Best practice for navigating between UI screens
I want to change UI screens from login.fxml to home.fxml.
Should I change the Stage or the Scene? I'm not sure which is the best practice?
Also, can I use a lambda expression for the handler in the ...
12
votes
1
answer
22k
views
threejs: rendering multiple scenes in a single webgl renderer
I am trying to include multiple scene into a single webgl renderer as per code below:
renderer.render( scene1, camera );
renderer.render( scene2, camera );
I am facing issue where in the last ...
10
votes
1
answer
11k
views
Unity 5 - Scene darkens when switching scenes
Ok, here is a new issue.
I will attach 2 photos. (Note: this is a demo level)
The lighter image is the way the scene is supposed to look when it is loaded. And in fact, it will load that way when I ...
10
votes
3
answers
3k
views
Is there a 3D scene format specific or well-suited for raytracing?
I'm working on a raytracer and I don't want reinvent the wheel when it comes to file formats for 3D scenes. I also want to be able to test my program with scenes made by others. I'm a programmer not a ...
10
votes
1
answer
6k
views
Video Scene Detection Implementation
I am looking for a video scene detection algorithm implementation.
Any programming language used for the implementation is acceptable.
I found this implementation but it is very sensitive to small ...
8
votes
2
answers
9k
views
Corona: Attempt to concatenate global 'sceneName'
I have this code:
local storyboard = require "storyboard"
local options =
{
effect = "slideLeft",
time = 800
}
storyboard.gotoScene( "scene1", options )
In the same directory I have a file ...
8
votes
1
answer
9k
views
Scene size in Xcode 6 / SpriteKit / Swift
I've been getting stuck doing what should be really simple stuff in Xcode, I am trying to add a sprite to the scene and for it to sit in the bottom left corner:
var groundTexture : SKTexture = ...
8
votes
2
answers
26k
views
How to hide and show an object on scene in three.js
I have an object which is composed of spheres on my scene. And I have a hide and show button.
The flow of my program is like that. For example, when I select one of the spheres (I used raycasting for ...
8
votes
2
answers
4k
views
Multi-scene launching of build, as is, from Unity, how?
Multiscene editing in Unity, blessed be it, permits the launching (via Editor Play mode) of the current scenes, in their current hierarchical state.
However, building and running the project doesn't ...
8
votes
3
answers
15k
views
Can you write two different Java FX scenes as two separate classes?
I'm a beginning Java programmer, finishing up the "Java 101" class at my local university. I'm also pushing myself to learn some extra topics on the side, including Java FX. I've worked through the ...
8
votes
2
answers
4k
views
waiting for scene to be fully rendered in cesium
when loading kml datasource, I want to display a loading image until it can be visualized in the viewer or scene.
I tried to handle:
viewer.dataSources.dataSourceAdded event but it is fired very ...
8
votes
0
answers
153
views
How can I create SwiftUI scenes dynamically?
I've been studying SwiftUI and understanding Apps, Scenes and Views from this WWDC20 video. I'm trying to understand these concepts with a sample app which displays a list of movies and helps in ...
7
votes
3
answers
38k
views
Switching scene in javaFX
I have problem when trying to close current scene and open up another scene when menuItem is selected. My main stage is coded as below:
public void start(Stage primaryStage) throws Exception {
...
7
votes
1
answer
6k
views
Unity: Are running Coroutines destroyed upon loading new scene?
If you have a coroutine running in a script attached to an object in a given scene, when that scene ends, does the coroutine get terminated/destroyed? ...even if the coroutine contains e.g. an endless ...
7
votes
3
answers
8k
views
how can one detect a finished resizing operation in JavaFX?
I have a stage, a scene and a WebView node. When I expand the window to a larger size - things get pretty sluggish due to WebView. What I want to do is fill the new space for WebView only when the ...
7
votes
1
answer
364
views
Method for loading a SKScene from a file without calling the init(fileNamed:"")
As title says, is there any method that I can call to load a SKScene from a file (.SKS) without calling the init(fileNamed: "...") method?
6
votes
2
answers
40k
views
JavaFX change the image in an imageView
Basically I have a method to load an Image from database into an imageView and a second method to change the image I'm sucessfully running both methods without getting an exception but after the ...
6
votes
2
answers
5k
views
How To exclude helper objects from intersection check by raycaster in threejs?
I have a threejs scene with intersection checking on objects. I'm adding every scene object to the array which is then checked by the raycaster.
var intersects = raycaster.intersectObjects( scene....
6
votes
1
answer
7k
views
how snapshot the entire scene in javafx?
have this fully working code but i don't know how snapshot the entire scene in JAVAFX as PNG format ?
i try to export pie Chart as snapshot it work but i couldn't figure how to add another chart to ...
6
votes
1
answer
7k
views
specifying scene's background color in SceneKit
I'm trying to specify a background color (which is currently black) of a screen just before the scene appears. I searched documentation and this is what I found:
var background: ...
6
votes
1
answer
2k
views
Delphi GLScene export scene as stl
I have a GLScene project. In the SceneViewer I import some stl files as freeform.
The user can interact with this objects (move and rotate them with mouse).
Now I have to export this whole Scene to ...
5
votes
3
answers
2k
views
Swift, SpriteKit: how to save the whole progress of a scene
I have build a swift game with a "GameViewController.swift"
import UIKit
import SpriteKit
class GameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
if ...
5
votes
3
answers
18k
views
Make Rectangle transparent
I need to make a drawn rectangle mouse transparent, in order to see the desktop.
The following code draws my rectangle. What should I add to get that ?
Thanks for help
public void start(Stage ...
5
votes
2
answers
4k
views
How to create a .mesh file with OGRE?
I'm relatively new to OGRE graphics engine, so my question may seem too obvious, but searching for relevant information was not successful.
Given:
I have an OGRE application with a scene created of ...
5
votes
1
answer
2k
views
Swift : Updated Variable in a different scene
I've got a variable in my GameScene, it's score variable, and it's being displayed on screen with SKLabelNode.
Everytime time there is a collision, 1 is being added to score, which is being ...
5
votes
2
answers
9k
views
Add background to Andengine scene Android
I wanna set My Scene Background but I don't know how! I had read a lot about this, but I can't make this works. Is my start with Andengine, and is hard found precise information for my problem, all is ...
5
votes
2
answers
1k
views
JavaFX Scene loses color when a button is created
Can anyone explain why my scene loses color the moment I create a button in JavaFX?
The following code works, with the background of the scene changing to red
@Override
public void start(Stage ...
5
votes
1
answer
662
views
Requesting focus on a JavaFX stage doesn't change the macOS top left menu bar title
When I try to request focus (I'm on macOS Mojave 10.14.2) when the user clicks a 'show' button from the tray icon menu, it doesn't change the menu bar on the top left corner (e.g. Chrome -> java), but ...
5
votes
2
answers
937
views
Scrolling a childscene in AndEngine
I have a problem scrolling my childscene. I have created a CameraScene which i am trying to scroll with a touch event. My childscene is not scrolling, however, if i scroll on the camera attached to ...
4
votes
2
answers
1k
views
Setting onClickListeners for buttons in scenes programmatically
I have 2 layouts which contain the same buttons
layout_1.xml
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
...
4
votes
1
answer
16k
views
javafx - Set not resizable for only one stage
I would like to know, how to solve one problem.
OK. I have two scenes. I want to set not resizable to first scene, but the second one is still resizable. I don't know how to do it.
Do you ...
4
votes
2
answers
6k
views
Change Scene without resize window in JavaFX
I'm trying to change Scenes on JavaFX, but without change the window size. However, when I set stage.setScene(scene2); the window size decreases, and I want to keep the both Scenes maximized. I've ...
4
votes
1
answer
20k
views
Using JavaFX 8 Scene, Read Keyboard Input while running
I have my JavaFX 8 Scene going nicely. Now, while everything else is happening, I would like to continuously check for any KeyEvent/KeyCode while the program is running. I have a Timeline called ...