Announcement

Collapse
No announcement yet.

Projector

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Projector

    This projector i coded works fine, except a few choice things:

    1) Get far enough and look away, disappears before its lifespan ends...
    2) Transparent sectiosn of the texture are black...

    Anyway to fix this? I want the texture render Normal and it to be destroyed after the lifespan runs out not when i look away.

    Any Suggestions?

    Ty in advance, ::B!G::

    #2
    I have a feeling it becomes non relevant when you look away, which is why it ends up destroyed... I'm not sure how one would fix this though, but maybe that's a good place to start

    Comment


      #3
      but it is set relative hmm odd eh?

      Comment


        #4
        Some projectors (not all) will destroy if you dont look at them for a few seconds, or if bDropDetail is true. I forget where its implemented. It's been forever since I worked with projectors that werent shadows.

        As for the black transparent parts, maybe you have the MaterialBlendingOp or FrameBufferBlendingOp set wrong? Theres like 3 or 4 of them, and different combinations do different things.

        Comment


          #5
          i forgot about bAlwaysRelevent i set that true, now im looking at the projector in Junkyard, and i think the blending i need is there, we will soon find out

          Comment


            #6
            What i need now is to project like color, its actig like a light.. how do i go about fixin that?
            [EDIT] Is it because its not color? lol
            [EDIT] Fixed the blending, but it disappeards. Odd Hmm..

            Comment


              #7
              *BUMP*

              Comment


                #8
                W00T I DID IT!!!

                Comment


                  #9
                  I have another final quetion, i hope final, I have a Shader:
                  Code:
                  var() Material PaintTex;
                  var() Combiner PaintTexComb;
                  var() ConstantColor PaintTexColor;
                  var() color PaintColor;
                  var() Shader PaintTexShad;
                  
                  event PreBeginPlay()
                  {
                      // Spawn Paint Props //
                      PaintTexColor = new(self) Class'Engine.ConstantColor';
                      PaintTexComb = new(self) Class'Engine.Combiner';
                      PaintTexShad = new(self) Class'Engine.Shader';
                  
                      // Fix Paint Color //
                      PaintTexColor.Color = PaintColor;
                      PaintTexComb.CombineOperation = CO_Multiply;
                      PaintTexComb.Material1 = PaintTex;
                      PaintTexComb.Material2 = PaintTexColor;
                      PaintTexShad.Diffuse = PaintTexComb;
                      PaintTexShad.Opacity = PaintTex;
                      ProjTexture = PaintTexShad;
                  }
                  Now if im correct that should work, but it projects a big White box...
                  Now im not sure why, and i made sure that the shader and comb worked in editor, so i dunno wats rong.
                  Any ideas?

                  Comment


                    #10
                    OMFG IFIGURED IT OUT YAY!!! Its just a great feeling when you fix things yourself!

                    Comment

                    Working...
                    X