scenegraph

Playing Multiple Video Nodes at the same Time - Roku SDK

家住魔仙堡 提交于 2020-01-24 17:51:11
问题 I am trying to overlay two video screens and play them simultaneously, with the audio on one muted. However, it seems like Roku only supports the playback of one Video at a time. Is there any way to play both Video nodes simultaneously? Any help is appreciated. 回答1: Looks like it may not be possible :( https://forums.roku.com/viewtopic.php?t=112791 回答2: This is not possible. I tried several things to make it work but without any success. So for now this is not an option. 来源: https:/

Rotating a 4x4 Matrix Causes Scaling Over Time

无人久伴 提交于 2020-01-06 03:26:11
问题 I am using glm::rotate to rotate a transformation matrix for a cube in a scene. "cube->t = glm::rotate(cube->t, stepTime * 50.f, glm::vec3(0.f, 1.f, 0.f));" is called once per frame, where cube->t is the matrix in question. The strange thing is that over the course of 20 minutes (or two minutes if I rotate by stepTime * 5000.f instead of stepTime * 50.f ), the cube scales noticeably on the X and Z axes, where the scaling on those two axes is the same at all times (the height of the cube never

Using matrices to transform the Three.js scene graph

烈酒焚心 提交于 2020-01-01 12:03:56
问题 I'm attempting to load a scene from a file into Three.js (custom format, not one that Three.js supports). This particular format describes a scene graph where each node in the tree has a transform specified as a 4x4 matrix. The process for pushing it into Three.js looks something like this: // Yeah, this is javascript-like psuedocode function processNodes(srcNode, parentThreeObj) { for(child in srcNode.children) { var threeObj = new THREE.Object3D(); // This line is the problem threeObj

How to replace a PanelSet using replaceChild in BrightScript

不羁的心 提交于 2019-12-24 10:56:43
问题 I'm using the PanelSet class to create a settings screen made of two panels: panelA on the left-hand side displays a list of overall settings options panelB is displayed on the right-hand side, includes a list of different options for each item on panelA How can I replace the Panel displayed on the right-hand side, when the user changes the focused item on panelA ? Roku's documentation states that you have to use the method replaceChild , but I can't figure out how that's supposed to work, or

Render a SceneGraph with PyOpenGL

旧时模样 提交于 2019-12-24 05:30:44
问题 I'm using OpenGLContext to load a VRML file into a SceneGraph object. Unfortunately, for the life of me I can't find any example showing how to render the SceneGraph. I've created a context with testcontext.getInteractive() , but now what? How do I render a SceneGraph? 回答1: It's quite poorly documented. All that needs to be done is create a context class and set its sg field, like so: def MyContext(BaseContext): def OnInit(self): self.sg = ... load your scene graph here ... def OnRender(self,

Three.js - calculating relative rotations

家住魔仙堡 提交于 2019-12-13 04:41:12
问题 I have a THREE.Scene with two meshes added, meshA and meshB , each of which has been rotated in different ways. My goal is to remove meshB from the scene and re-add it as a child of meshA , while preserving its global position and rotation -- in other words, the position and rotation of meshB should appear the same before and after this code. My current, almost working attempt is as follows: var globalOffset = new THREE.Vector3().subVectors( meshB.position, meshA.position ); var localOffset =

Getting absolute position and rotation from inside a scene graph?

牧云@^-^@ 提交于 2019-12-11 13:09:51
问题 So I have run up against this problem a few times: I have some object in my 3D Scene Graph which is a child of some other object. Lets call them c (Child) and p (Parent). c's position is defined relative to p. Thus c may have a position (1,0,0) but of course, due to p having some other position, say (1,2,3), it is not actually rendered at the original of our world, but at (2,2,3). Now lets say for some reason we want to know c's absolute position in world coordinates (or rotation, the problem

How to implement Deep Linking in Roku SG application?

两盒软妹~` 提交于 2019-12-11 04:07:57
问题 I need help understanding deep linking, because our Roku Scene Graph application was rejected by Roku. Roku explains deep linking here: https://sdkdocs.roku.com/display/sdkdoc/Deep+Linking, but this documentation is not detailing all information about deep linking. For example, how do we get the contentId and mediaType? Here is our main() function that runs on launch: function main(args as Dynamic) as Void print "args" args if (args.ContentId <> invalid) and (args.MediaType <> invalid) if

overriding drawing order scene2D's stage

耗尽温柔 提交于 2019-12-09 16:06:27
问题 You are given a complex Scene2D graph in libgdx with several Group's and Actor's . You want the user to select some Actors and draw those at the end so they appear focussed on top of any other Actors . I would like to iterate over the Stage twice. The first time it draws the unselected Actors , the second time it draws the selected actors . I don't see any 'good' way to enforce this behaviour however. I would prefer options that are clean. I would not like to copy an entire method

3D scene-graph library for Java?

徘徊边缘 提交于 2019-12-07 01:02:55
问题 I'm looking for a reliable 3D scenegraph API for Java with good documentation, an active community and a license that allows for commercial use. I ruled out com.sun.scenegraph because it's GPL (and seemingly dead), Java3D because of this post and JMonkeyEngine because of this post. Any ideas? 回答1: Try Xith3D; it uses JOGL, not Java3D. 回答2: My interpretation of the Java3D post is that they are adding a new scene graph, not replacing their current one, in order to more effectively mesh with