![]() ![]() Please let me know what you are thinking. If there are groups (part of the same object) underneath the top group, the light source might be obscured. I don’t know how you do that (didn’t have time to check the code) but when you select a group you actually select the top most group of the object and associate the light source with it. ![]() You do get an action now by double clicking a group to get the group name.Īnother possible issue (using g instead of o) is the position of the light source you are turning on. Like I am doing now in the picture element floor plan. The object can be any object, a light, a TV, a camera etc. obj without much change on your side of the code.īut, thinking further, I reckon we need to find a way to get an action by clicking (double clicking, hold, whatever) associated with the object one is clicking on. It can be solved by writing a plugin based on the already existing code in SweetHome3D export. I can go into some details if I wasn’t clear enough.įirst of all, we need to define our goal.įrom my point of view the group (object) name change is part of the problem. In this way an object will always have the same name no matter what changes to the SweetHome3D design is made. has to have unique name) and use it as object name. On the other side, floor3d-card has to get the o tag (which btw. ![]() If export is ok, eventually, a SweetHome3D plugin can be written, basically the same code in plugin format. Tests can be made to make it export the “o” tag. Private void writeNode(Node node, String nodeName, Transform3D parentTransformations)īasically it parses the objects by calling itself and goes down for the children of the Group (see lines 343-347). ![]() SweetHome3D-6.5.2-src\src\com\eteks\sweethome3d\j3d\OBJWriter.java Make SweetHome3D export the o tag (it doesn’t do it now, one reason might be the fact that SweetHome3D accepts the same name for several different instances of the same object).Been looking into SweetHome3D’s code.Īs far as I can see, there is a way to solve it. I’ve been thinking to the problem of object name change. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |