Skip to content

Instantly share code, notes, and snippets.

View arpit15's full-sized avatar

Arpit Agarwal arpit15

View GitHub Profile
2022-06-18 15:52:01,933 [DEBUG] CloudFormation client initialized with endpoint https://cloudformation.us-east-2.amazonaws.com
2022-06-18 15:52:01,933 [DEBUG] Describing resource HeadNodeLaunchTemplate in stack compute1
2022-06-18 15:52:02,035 [INFO] -----------------------Starting build-----------------------
2022-06-18 15:52:02,036 [DEBUG] Not setting a reboot trigger as scheduling support is not available
2022-06-18 15:52:02,037 [INFO] Running configSets: deployFiles
2022-06-18 15:52:02,038 [INFO] Running configSet deployFiles
2022-06-18 15:52:02,039 [INFO] Running config deployConfigFiles
2022-06-18 15:52:02,039 [DEBUG] No packages specified
2022-06-18 15:52:02,039 [DEBUG] No groups specified
2022-06-18 15:52:02,039 [DEBUG] No users specified
2022-06-18 15:51:34,669 - util.py[DEBUG]: Cloud-init v. 22.2-0ubuntu1~20.04.2 running 'init-local' at Sat, 18 Jun 2022 15:51:34 +0000. Up 38.61 seconds.
2022-06-18 15:51:34,669 - main.py[DEBUG]: No kernel command line url found.
2022-06-18 15:51:34,669 - main.py[DEBUG]: Closing stdin.
2022-06-18 15:51:34,671 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2022-06-18 15:51:34,672 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2022-06-18 15:51:34,741 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2022-06-18 15:51:34,741 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2022-06-18 15:51:34,741 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2022-06-18 15:51:34,741 - stages.py[DEBUG]: no cache found
2022-06-18 15:51:34,741 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
@arpit15
arpit15 / blender_ply_imp_changes.patch
Created February 16, 2022 00:41
Add ply plugin import option for transformation
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py
index a3f08ebd..a456bac6 100644
--- a/io_mesh_ply/__init__.py
+++ b/io_mesh_ply/__init__.py
@@ -55,7 +55,7 @@ from bpy_extras.io_utils import (
orientation_helper,
)
-
+@orientation_helper(axis_forward='Y', axis_up='Z')
@arpit15
arpit15 / ply-axis-selection.patch
Created August 16, 2021 16:53
git patch for ply loader blender
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py
index a3f08ebd..10cdd3ba 100644
--- a/io_mesh_ply/__init__.py
+++ b/io_mesh_ply/__init__.py
@@ -55,7 +55,7 @@ from bpy_extras.io_utils import (
orientation_helper,
)
-
+@orientation_helper(axis_forward='Y', axis_up='Z')
@arpit15
arpit15 / glass-of-water.xml
Created July 27, 2021 18:53
glass of water scene
<?xml version="1.0" encoding="utf-8"?>
<scene version="0.6.0" >
<integrator type="pssmlt" >
<string name="technique" value="mmlt"/>
<integer name="maxDepth" value="32" />
<boolean name="strictNormals" value="true" />
</integrator>
<sensor type="perspective" >
<float name="fov" value="35" />
# This is the basic script that can render images for a given object. It gives RGB image, Depth Image, and Segmentation Mask.
import pybullet as pb
physicsClient = pb.connect(pb.GUI)
import numpy as np
import pybullet_data
pb.setAdditionalSearchPath(pybullet_data.getDataPath())
planeId = pb.loadURDF('plane.urdf')
<?xml version="1.0" encoding="utf-8"?>
<scene version="0.5.0">
<integrator type="multichannel">
<integrator type="path"/>
<integrator type="field">
<string name="field" value="distance"/>
</integrator>
[('__init__', <bound method PyCapsule.__init__ of RegularSpectrum[
distr = ContinuousDistribution[
size = 95,
range = [360, 830],
integral = 3.70309,
pdf = [0.00441316, 0.00467105, 0.00492895, 0.00482895, 0.00472895, .. 85 skipped .., 0.00491663, 0.00517598, 0.00543533, 0.00557121, 0.00570709]
]
]>), ('__repr__', <bound method PyCapsule.__repr__ of RegularSpectrum[
distr = ContinuousDistribution[
size = 95,
<scene version="2.0.0">
<emitter type="mypoint">
<transform name="to_world">
<translate x="0" z="0" y="9.0"/>
</transform>
<spectrum name="intensity" value="1"/>
</emitter>
</scene>
import mitsuba
import enoki as ek
import numpy as np
from math import radians, cos
from mitsuba.core import Point3f, warp, Ray3f, AnimatedTransform
from mitsuba.core.math import Pi
from mitsuba.render import (DirectionSample3f, Emitter,
SurfaceInteraction3f, EmitterFlags,
Texture)