Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Shadows in InitRender?

    Scheduled Pinned Locked Moved SDK Help
    11 Posts 0 Posters 862 Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 20/03/2007 at 17:12, xxxxxxxx wrote:

      Push. Period. Need info. Period. Thanks. Period.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 22/03/2007 at 09:27, xxxxxxxx wrote:

        I need info on this please!

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 22/03/2007 at 09:32, xxxxxxxx wrote:

          Can I maybe calculate the shadow seperately in InitRender()? I ask because I just saw CalcShadow in VolumeData and wonder if this can be used for correct shadow calculation for non-surface points in space in InitRender().

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 22/03/2007 at 19:04, xxxxxxxx wrote:

            sorry, I am on vacation this week. I try to answer next week asap.

            cheers,
            Matthias

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 22/03/2007 at 19:39, xxxxxxxx wrote:

              InitRender is as it suggests, called during initialsing. As its doing this for materials it makes sense that shadows can not be ready yet as all the materials have not been initialised. Really you should not be calling anything for rendering in initrender afaik, if you need to do some rendering pre-main render then you need a post effect and wait until VP_INNER.

              HTH.

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 23/03/2007 at 03:35, xxxxxxxx wrote:

                Thank you! This would have been a good answer to my question when I was about to decide if I choose a shader or a videopost plugin: Videopost or Shader

                Unfortunately this wasn´t said back then, so now I am in a shader and must work with it.

                Anyway thanks, I will then try a different way to get my shadows.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 24/03/2007 at 05:38, xxxxxxxx wrote:

                  I would not exactly list it as an advantage or disadvantage, you should not be calling anything for rendering during init of a vp either. A shader is called during rendering, a VP has many more options of when its called before, during and after rendering. If you are now in a shader just add a hidden vp that only runs when one of your shaders is in the document and during VP_INNER does what init you need in your shader.

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 24/03/2007 at 05:59, xxxxxxxx wrote:

                    Hi Dave,

                    thanks for the info. Good idea! However, do I need to store the data I allocate there for each Processor? Is it in a MP context? That would be bad, as it would increase memory I need for the data I want to precalc (unfortunately, it´s not possible to split the data I am calculating on-thy-fly).

                    I am now using CalcShadow during rendering. That´s pretty fast in conjunction with my already precalculated data. I am releasing tomorrow so I won´t be able to use your VP approach (don´t wanna risk any side effects 🙂 but will implement it afterward provided that it´s not MP 🙂

                    thank you!

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 24/03/2007 at 10:26, xxxxxxxx wrote:

                      No its not threaded in Execute as its called between various points in the render processing. The sdk docs have all the info and its something easily tested with a breakpoint.

                      Good luck on the release.

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 24/03/2007 at 10:30, xxxxxxxx wrote:

                        Thank you!

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