SAMSON Forum
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • SAMSON Connect
    • Get SAMSON

    Van der Waals Tutorial - Casting Shadows

    Modeling
    2
    4
    1391
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lauren last edited by

      Hello,

      I'm having some issues with the casting shadows part of the Van Der Walls tutorial.

      this is the provided code:
      void SEVanDerWaalsVisualModel::displayForShadow() {
      display();
      }

      which I inserted below the void SEVanDerWaalsVisualModel::display... section. However, I am getting these errors
      0_1620321568393_Screen Shot 2021-05-06 at 1.19.06 PM.png

      and advice would be great.
      Thank you,
      Lauren

      1 Reply Last reply Reply Quote 0
      • DmitriyMarin
        DmitriyMarin last edited by

        Dear @Lauren ,

        We are sorry, the tutorial might be slightly outdated in that it was done with the previous version of SAMSON SDK. It should rather be a single display function that gets SBNode::RenderingPass:

        class SEVanDerWaalsVisualModel: public SBMVisualModel {
        
        	SB_CLASS
        
        public :
        
        	// ...
        
        	virtual void			display(SBNode::RenderingPass renderingPass);			///< Displays the visual model
        
        	// ...
        
        }
        

        I will update the tutorial shortly and will let you know. Thank you for reporting this issue.

        Dmitriy,
        The SAMSON Team, https://s-c.io

        1 Reply Last reply Reply Quote 1
        • DmitriyMarin
          DmitriyMarin last edited by

          For now, you can check the updated code in our GitHub repository: SAMSON-Developer-Tutorials.

          In the Developer Guide, this tutorial's code and some of its descriptions are for its previous version and will be updated soon.

          Dmitriy,
          The SAMSON Team, https://s-c.io

          1 Reply Last reply Reply Quote 1
          • DmitriyMarin
            DmitriyMarin last edited by

            Dear @Lauren ,

            We have updated the Creating visualizations: Van der Waals visual model tutorial in our Developer Guide.

            You can also check out the code samples corresponding to this tutorial here: https://github.com/1A-OneAngstrom/SAMSON-Developer-Tutorials/tree/master/VanDerWaals. The code samples contain more optimized code and some additional functionality.

            Dmitriy,
            The SAMSON Team, https://s-c.io

            1 Reply Last reply Reply Quote 1
            • First post
              Last post