About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Embedding an Esenthel render window into large industrial application
Author Message
Barthap Offline
Member

Post: #16
RE: Embedding an Esenthel render window into large industrial application
That's great! Thanks!
05-13-2011 05:47 AM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #17
RE: Embedding an Esenthel render window into large industrial application
what did you do, Dynad? It cant see Win32 (there is Microsoft.Win32, MS.Win32 but nothing has User32 namespace).
05-13-2011 02:42 PM
Find all posts by this user Quote this message in a reply
flcpy Offline
Member

Post: #18
RE: Embedding an Esenthel render window into large industrial application
Please, use pinvoke lib (written by warren tang) which is attached to this post.


Attached File(s)
.rar  PInvokeLibrary.rar (Size: 100.13 KB / Downloads: 28)
05-13-2011 02:56 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #19
RE: Embedding an Esenthel render window into large industrial application
Works great! Thanks again!
05-13-2011 03:12 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #20
RE: Embedding an Esenthel render window into large industrial application
(05-12-2011 09:10 PM)flcpy Wrote:  what do you mean by drawing multiple renders on a win32 window?

What i meant is if its also possible to have 2 viewports inside the win32 app. So 2 borders with 2 different viewports. But probably that won't work because of having just 1 Hwnd ptr.

There is always evil somewhere, you just have to look for it properly.
05-13-2011 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
rndbit Offline
Member

Post: #21
RE: Embedding an Esenthel render window into large industrial application
(05-13-2011 04:54 PM)Dynad Wrote:  
(05-12-2011 09:10 PM)flcpy Wrote:  what do you mean by drawing multiple renders on a win32 window?

What i meant is if its also possible to have 2 viewports inside the win32 app. So 2 borders with 2 different viewports. But probably that won't work because of having just 1 Hwnd ptr.

in theory it should work. create two regions (idk how exactly those things are named in win32 gui, i use Qt) and set their handles as parents to your two created esenthel windows. this however requires new running esenthel instance for each viewport. Much easier would be to implement viewports in esenthel itself.
05-13-2011 05:12 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #22
RE: Embedding an Esenthel render window into large industrial application
Whats the point of running 2 instances of EE? That won't make a very good tool if u ask me... And adding viewports in EE isnt what im looking for... why should i going for this way if you use the gui layout of EE...

There is always evil somewhere, you just have to look for it properly.
05-13-2011 05:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
flcpy Offline
Member

Post: #23
RE: Embedding an Esenthel render window into large industrial application
I think you need to modify Esenthel. I hope that you can change the sources of this engine.
05-13-2011 06:03 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #24
RE: Embedding an Esenthel render window into large industrial application
Hey, i've integrated esenthel to Windows Forms application. Here's screen http://imageshack.us/photo/my-images/855...derer.png/

frmRenderer is a WPF UserControl, set as MDI child to my editor.

Doing that was hard, I crashed visual studio 5 times wink
05-13-2011 08:34 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #25
RE: Embedding an Esenthel render window into large industrial application
looks pretty smile
05-13-2011 08:48 PM
Find all posts by this user Quote this message in a reply
flcpy Offline
Member

Post: #26
RE: Embedding an Esenthel render window into large industrial application
cool UI now smile
05-13-2011 08:59 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #27
RE: Embedding an Esenthel render window into large industrial application
Thanks, (I use DotNetBar)

I have small problem with that. When I close that WPF control, esenthel app still works and I cant show that control again. Same when I turn off editor in debug mode. After clicking close button debugger still works. How to kill Esenthel process (thread)? Should I call StateExit.set() ?


EDIT: Ah, just I should return false in update()
(This post was last modified: 05-13-2011 09:06 PM by Barthap.)
05-13-2011 09:00 PM
Find all posts by this user Quote this message in a reply
flcpy Offline
Member

Post: #28
RE: Embedding an Esenthel render window into large industrial application
Do you call DestroyWindowCore and then break the loop in Update of esenthel ?
(This post was last modified: 05-13-2011 09:10 PM by flcpy.)
05-13-2011 09:10 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #29
RE: Embedding an Esenthel render window into large industrial application
StateExit.set() is also good
05-13-2011 09:13 PM
Find all posts by this user Quote this message in a reply
Barthap Offline
Member

Post: #30
RE: Embedding an Esenthel render window into large industrial application
I retutn false in update() and it works
05-13-2011 09:38 PM
Find all posts by this user Quote this message in a reply
Post Reply