Skip to content

Win 10 not every example is working #258

@TheBricktop

Description

@TheBricktop

Tried the default installation on windows using provided dll's.
The Earth exampe runs correctly but almost every other doesnt.
Tried stereo example and the only output is light blue window.

for example :

from __future__ import absolute_import, division, print_function, unicode_literals

import math
import random
import pi3d

# Setup display and initialise pi3d
DISPLAY = pi3d.Display.create(w=1200, h=600, frames_per_second=30)
DISPLAY.set_background(0.4, 0.8, 0.8, 1)      # r,g,b,alpha
# yellowish directional light blueish ambient light
pi3d.Light(lightpos=(1, -1, -3), lightcol=(1.0,
           1.0, 0.8), lightamb=(0.25, 0.2, 0.3))
CAMERA = pi3d.StereoCam(separation=-0.5, interlace=0)

mykeys = pi3d.Keyboard()

while DISPLAY.loop_running():

    k = mykeys.read()
    if k > -1:
        if k == 112:
            pi3d.screenshot("earth1.jpg")
        elif k == 27:
            mykeys.close()
            DISPLAY.stop()
            break

gives me blue box

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions