http://stackoverflow.com/questions/3552931/waitforsingleobject-not-work
auto reset or initially signalled.
Monday, September 7, 2015
Monday, August 17, 2015
Monday, August 10, 2015
how to solve visual studio profile error
When I tried cpu sampling test (performance, profiler) in visual studio 2013, window 8, there was error as follow.

'~~~' is not a valid process ID.
First time, I suspected vmware, but uninstall of it doens't work.
http://stackoverflow.com/questions/4524903/cant-start-visual-studio-profiler
https://connect.microsoft.com/VisualStudio/feedback/details/771324/vs2012-profiler-not-producing-any-call-tree-data-win-8-64
And finally, I find someone's solution.
http://www.symantec.com/connect/forums/cannot-profile-visual-studio-2010
After setting registry and rebooting, sampling test work again!

'~~~' is not a valid process ID.
First time, I suspected vmware, but uninstall of it doens't work.
http://stackoverflow.com/questions/4524903/cant-start-visual-studio-profiler
https://connect.microsoft.com/VisualStudio/feedback/details/771324/vs2012-profiler-not-producing-any-call-tree-data-win-8-64
And finally, I find someone's solution.
http://www.symantec.com/connect/forums/cannot-profile-visual-studio-2010
After setting registry and rebooting, sampling test work again!
Sunday, August 9, 2015
kd t ree - ray tracing
ray casting 연산을 bvh로만 하는건줄 알았떠니 그게 아니였다.
http://blog.frogslayer.com/kd-trees-for-faster-ray-tracing-with-triangles/
http://gamma.cs.unc.edu/graphicscourse/16_ray_tracing_2.pdf
: bvh, kdtree의 장단점 비교. Ray - AABB intersection
http://www.nvidia.com/content/nvision2008/tech_presentations/Game_Developer_Track/NVISION08-Interactive_Ray_Tracing.pdf
: nvida, implementation
http://www.cs.virginia.edu/~gfx/Courses/2010/IntroGraphics/Lectures/6-RayCasting.pdf
https://social.msdn.microsoft.com/Forums/en-US/85ebadf5-704e-4d1a-844a-be62a904e65a/functionality-needed-by-the-profiler-has-been-intercepted-by-another-application?forum=vstsprofiler
http://blog.frogslayer.com/kd-trees-for-faster-ray-tracing-with-triangles/
http://gamma.cs.unc.edu/graphicscourse/16_ray_tracing_2.pdf
: bvh, kdtree의 장단점 비교. Ray - AABB intersection
http://www.nvidia.com/content/nvision2008/tech_presentations/Game_Developer_Track/NVISION08-Interactive_Ray_Tracing.pdf
: nvida, implementation
http://www.cs.virginia.edu/~gfx/Courses/2010/IntroGraphics/Lectures/6-RayCasting.pdf
https://social.msdn.microsoft.com/Forums/en-US/85ebadf5-704e-4d1a-844a-be62a904e65a/functionality-needed-by-the-profiler-has-been-intercepted-by-another-application?forum=vstsprofiler
Sunday, August 2, 2015
공부중 - python ipc
http://www.slideshare.net/dabeaz/an-introduction-to-python-concurrency
http://timgolden.me.uk/python/winsys/cookbook/ipc.html
https://docs.python.org/2/howto/sockets.html?highlight=ipc
http://stackoverflow.com/questions/7186876/whats-the-difference-between-named-pipe-and-mailslot-mailbox
따라서, python 에서도 mailslot을 이용한 통신으로 구현하면 될것으로 보인다.
http://timgolden.me.uk/python/winsys/cookbook/ipc.html
https://docs.python.org/2/howto/sockets.html?highlight=ipc
따라서, python 에서도 mailslot을 이용한 통신으로 구현하면 될것으로 보인다.
Sunday, July 26, 2015
Python class inherits new style, old style.
http://stackoverflow.com/questions/4015417/python-class-inherits-object
http://stackoverflow.com/questions/54867/what-is-the-difference-between-old-style-and-new-style-classes-in-python
http://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods
http://stackoverflow.com/questions/576169/understanding-python-super-with-init-methods
pyside + vtk
from PySide import QtCore, QtGui
from PySide.QtGui import QApplication
import vtk
from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
import sys
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(603, 553)
self.centralWidget = QtGui.QWidget(MainWindow)
self.gridlayout = QtGui.QGridLayout(self.centralWidget)
self.vtkWidget = QVTKRenderWindowInteractor(self.centralWidget)
self.gridlayout.addWidget(self.vtkWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralWidget)
class SimpleView(QtGui.QMainWindow):
def __init__(self, parent = None):
QtGui.QMainWindow.__init__(self, parent)
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
self.ren = vtk.vtkRenderer()
self.ui.vtkWidget.GetRenderWindow().AddRenderer(self.ren)
self.iren = self.ui.vtkWidget.GetRenderWindow().GetInteractor()
# Create source
source = vtk.vtkSphereSource()
source.SetCenter(0, 0, 0)
source.SetRadius(5.0)
# Create a mapper
mapper = vtk.vtkPolyDataMapper()
mapper.SetInputConnection(source.GetOutputPort())
# Create an actor
actor = vtk.vtkActor()
actor.SetMapper(mapper)
self.ren.AddActor(actor)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = SimpleView()
window.show()
window.iren.Initialize() # Need this line to actually show the render inside Qt
sys.exit(app.exec_())
Subscribe to:
Posts (Atom)
