omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. DarthXander

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    DarthXander

    @DarthXander

    0
    Reputation
    562
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    DarthXander Unfollow Follow

    Latest posts made by DarthXander

    • RE: Screen recording in scene

      Ah thank you, this could work! As long as it's fast enough to work every frame... I could of course just slow it down.

      posted in Pythonista
      DarthXander
      DarthXander
    • Screen recording in scene

      It is possible to record a scene, or a Node and its descendants? I know you can access a Texture object of a Node, but this object appears to be uneditable, and un-transferable to either pixel data or to write to a file.

      posted in Pythonista
      DarthXander
      DarthXander
    • RE: Unwanted black lines scene_drawing

      Well, I never figured out how to fix it, but i just replaced the call to rect() with triangle_strip() with the vertices for two triangles to draw a rectangle that way.

      posted in Pythonista
      DarthXander
      DarthXander
    • Unwanted black lines scene_drawing

      I'm using the scene module to draw several rectangles on the screen and then using triangle_strip() to draw triangles on top of them. Two of the rectangles in my scene have black lines along the left of them, even though neither my fill nor stroke colors are black.

      Here's my code within the draw(self) method:

          def draw(self):
              background(.3, .66, .9)
      		stroke_weight(0)
      		density = 50
      		for i in range(density):
      			fill(i/float(density), 0, 1)
      			start = i/float(density)
      			end = (i+.8)/float(density)
      			smaller = min(self.terrain_func(start), self.terrain_func(end))
      			rect(start*self.bounds.w, 0, (end-start)*game.bounds.w, smaller*self.bounds.h)	
      			if self.terrain_func(start) < self.terrain_func(end):
      				v = [(start*self.bounds.w, self.terrain_func(start)*self.bounds.h), (end*self.bounds.w, self.bounds.h*self.terrain_func(start)), (end*self.bounds.w, self.bounds.h*self.terrain_func(end))]
      			else:
      				v = [(start*self.bounds.w, self.terrain_func(end)*self.bounds.h), (end*self.bounds.w, self.bounds.h*self.terrain_func(end)), (start*self.bounds.w, self.bounds.h*self.terrain_func(start))]
      			triangle_strip(v)
      

      Anyone know what's going on?

      Oh, and here's an imgur link to screenshots of what's happening.

      posted in Pythonista
      DarthXander
      DarthXander