Xform Nodes not working?

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

This may be premature, and the problem COULD be in my code, but it is not looking like that is the case after some tests.

Attached is a graphic explaining what I am doing. I needed a quick way to make copies of parts in Octane that were pointing in some other desired direction, and that were positioned at some other desired position relative to the original. The "copies" are just the same mesh with transform nodes applied. When a copy is needed, I import the same mesh, scale it to the proper size, rotate it into the desired direction, then translate it into its final position, in that order. I get the values for the rotations and translations from a vb calculator I built.

Please see the attached graphic to see what the problem is. I THINK the transform nodes are not working properly. My simulations for what SHOULD happen come out correct, but Octane's solutions do not come out right. As I post this, I am still looking for some error in my method.
Balance Arm Screws Setup (For Forum).jpg
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
User avatar
grimm
Licensed Customer
Posts: 1332
Joined: Wed Jan 27, 2010 8:11 pm
Location: Spokane, Washington, USA

Might be a rounding error?
Linux Mint 21.3 x64 | Nvidia GTX 980 4GB (displays) RTX 2070 8GB| Intel I7 5820K 3.8 Ghz | 32Gb Memory | Nvidia Driver 535.171
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

I thought maybe, too. But I did a test with rounding and the error was not nearly as great as it came out in Octane.

And as an update to my post, I forgot to mention that the problem is in v1.23...I just tested this out in v1.2 and everything comes out OK. I know that a lot of significant changes were made to the node system, so it is looking like a v1.23 bug.
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

We have changed the order of the operations in the transform node. In 1.23 first the object is scaled, then rotated and then translated. In 1.20 this was the other way around.

--
Roeland
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

Hm, I had actually had my nodes in both, connected up in the "new" sequence:
xform nodes.jpg
These xform nodes were taken from a preexisting v1.2 "template" file I created for speeding up the creation of new scenes. Each node has two of the xforms turned off. So the Scale Node has Rotation and Xlation turned off, the Rotate node has Scale and Xlate turned off, and finally, the Xlate node has Scale and Rotate turned off. I did it this way to make it easier to go in and change values for a particular transformation without accidentally changing one of the other two.
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

Any clues yet?

Here is a direct comparison between v1.2 and v1.2x:
Xforms Not Working.jpg
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

We switched the order of the transformations between 1.20 and 1.21. So if every of the tree placements node only does a scale, rotation or translation as the name suggests then starting from 1.21 you can put those three into one node. The order in the node graph corresponds to the order used in the new versions.

At least version 1.24 will indeed keep all digits entered although it will display only three digits after the decimal point. Can you verify the left screw moves to a slightly different position if you enter exactly [-0.041, 0, -0.052] as translation?

--
Roeland
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

If I round down the values, the screw positions do change...They get worse. That was why I thought maybe there was still some internal rounding going on during calculations, but that doesn't make sense since if I keep scale at 1:1, everything is fine.

This is true if I use the old nodes that allowed you to delete a transform (right-click > Delete Node) and the new 1.2x transform node that does not allow you to delete...The effect is the same.
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
User avatar
roeland
OctaneRender Team
Posts: 1823
Joined: Wed Mar 09, 2011 10:09 pm

I can't reproduce any issue like this here. Can you send us the scene? Just the two screws is enough.

--
Roeland
treddie
Licensed Customer
Posts: 739
Joined: Fri Mar 23, 2012 5:44 am

Here is the simplified scene and a jpg showing dimensions of the screw placements relative to the base.
Problem Scene 2.ocs
(41.24 KiB) Downloaded 150 times
Solid Model Dimensions.jpg
Win7 | Geforce TitanX w/ 12Gb | Geforce GTX-560 w/ 2Gb | 6-Core 3.5GHz | 32Gb | Cinema4D w RipTide Importer and OctaneExporter Plugs.
Post Reply

Return to “General Discussion”